Jump to content


HPR - HPR1182: LiTS 023: Date

  • Please log in to reply
No replies to this topic



    I make newbies cry!

  • Members
  • 2,858 posts

Posted 11 February 2013 - 07:00 PM

Spring is in the air and valentine's day is just around the corner and Dann Sexy Washko tells us all we need to know about dates on his regular Linux In The Shell series. Linux In The Shell aims to explore the use of many commands a user can run in the Bash Shell. Tutorials include a write up with examples, an audio component about the write up, and a video component to demonstrate the usage of the command.

The website is http://www.linuxintheshell.org/
The date command will not only display or let you change the current date and time but is the go to utility for getting date and time information into scripts. Evoked by itself the date command will output the current system date based upon the rules of the LC_TIME format. The LC_TIME format defines the rules for formatting dates and times. LC_TIME is a subset of locale which defines the overall environment based upon the chosen language and cultural conventions. You can see the current LC value by issuing the locale command. You can see time specific information for your system by issueing:
locale -m LC_TIME


Go to this episode

BinRev is hosted by the great people at Lunarpages!