Date (Unix command): Difference between revisions

Content deleted Content added
Citation bot (talk | contribs)
Removed parameters. | Use this bot. Report bugs. | Suggested by LeapTorchGear | #UCB_webform 22/54
GelvinM (talk | contribs)
Line 7:
==Option flags==
 
*+"''date format codes"'' Alters the output using the specified date conversion codes which are prefaced with at % sign. <ref name=Kerrisk>{{cite web |last=Kerrisk |first=Michael |date=Feb 2, 2025 |title=date(1) — Linux manual page |url=https://man7.org/linux/man-pages/man1/date.1.html |access-date=Mar 20, 2025 |website=man7.org |publisher=}}</ref> For [[POSIX]] compatibility the format codes correspond to the same format codes recognized by [[C (programming language)|C]]'s [[Strftime|strftime()]] function. Not surprisingly many Unix implementations use this function in their implementation of '''date'''.<ref>{{cite web |author=<!-- not stated --> |year=2025 |title=IEEE and The Open Group Base Specifications Issue 8>3. Utilities>date |url=https://pubs.opengroup.org/onlinepubs/9799919799/ |website=pub.opengroup.org |___location= |publisher=The Open Group |access-date=Apr 27, 2025}}</ref>
 
date +"Today is day %j of the year %Y and it’s a %A"