Date (Unix command): Difference between revisions

Content deleted Content added
GelvinM (talk | contribs)
added notes list; minor formatting
Line 4:
<!-- Once discussion is closed, please place on talk page: {{Old AfD multi|page=Date (Unix command)|date=26 April 2025|result='''keep'''}} -->
<!-- End of AfD message, feel free to edit beyond this point -->
The '''<code>date</code>''' command outputs the current or specified date and time and can also set the current system time. While available as a command line utility it is also used in [[Shell script|shell scripts]] to perform automated actions such as calculating the difference between different times, converting times between timezones, reformating timstamps in texts to fit different [[List of date formats by country|date presentation requirements]] and adding versioning information to backup and other files.<ref>{{cite book|last1=Nemeth|first1=Evi |last2=Snyder| first2=Garth |last3=Hein| first3=Trent | last4=Whaley| first4=Ben| title=UNIX and Linux System Administration Handbook| edition=4th | publisher=Prentice Hall|___location=New York|year=2011| isbn=978-0131-48005-6| pages=45,398}}</ref><ref>{{cite web| author=<!-- not stated --> | title=Formatting and Displaying Dates with Bash Scripts in Linux|date=Oct 22, 2023| url=https://www.squash.io/formatting-and-displaying-dates-with-bash-scripts-in-linux/ | website=www.squash.io| publisher=Squash Labs Inc|___location=Vancouver BC| access-date=Apr 28, 2025}}</ref>
 
==Option flags==
Line 73:
{{Expand section|date=May 2025|further OS/shell examples}}
 
== History ==
 
David McKenzie is the author of the Linux version of date. The date command has been part of Unix since AT&T's original Version 1.<ref name=Kerrisk /><ref>{{cite web |author=<!-- not stated --> |date=September 10, 2024 |title=FreeBSD Manual Pages |url=https://man.freebsd.org/cgi/man.cgi?date |website=man.freebsd.org |access-date=April 1, 2025}}</ref>
 
==References Notes ==
{{notelist}}
 
== References ==
{{reflist}}
[[Category:Standard Unix programs]]