[Bug 220602] Removing leading zeroes in date output isn't documented
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Jul 10 13:44:35 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220602
Bug ID: 220602
Summary: Removing leading zeroes in date output isn't
documented
Product: Documentation
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Many People
Priority: ---
Component: Documentation
Assignee: freebsd-doc at FreeBSD.org
Reporter: solene+freebsd at perso.pw
Hello,
The output of `date "+%m"` in july is "07". It is possible to remove the
leading zero by using the following syntax `date "+%-m"` which will output "7".
I haven't been able to find this in date(1), strftime(3), strptime(3).
I found it by looking gnu date man page and trying it on FreeBSD.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-doc
mailing list