Date (Unix command): Difference between revisions

Content deleted Content added
AnomieBOT (talk | contribs)
m Dating maintenance tags: {{Cn}}
GelvinM (talk | contribs)
Described use in shell scripts
Line 3:
-->{{Article for deletion/dated|page=Date (Unix command)|timestamp=20250426150027|year=2025|month=April|day=26|substed=yes}}
<!-- 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 date 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>
<!-- End of AfD message, feel free to edit beyond this point -->The '''date''' command outputs current or specified date and time and can also set the current system time.
 
==Option flags==