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: [email protected]
Reporter: [email protected]
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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-doc
To unsubscribe, send any mail to "[email protected]"