Most viewed posts
LINUX COMMANDS
Search
Linux Command: date
| See the examples |
date [options] [+format] [date]
|
Examples: |
date 0701040009 Set the date to July 1 (0701), 4 a.m. (0400), 2009 (09) date +"Hello%t Date is %D %n%t Time is %T" Produces a formatted date as follows: Hello Date is 02/20/09 date --date='TZ="America/Los_Angeles" 09:00 next Fri' What's the local time for 9AM next Friday on west coast US date --date='@2147483647' Convert seconds since the epoch (1970-01-01 UTC) to date date --date='25 Dec' +%A What day does xmas fall on, this year [ $(date -d "tomorrow" +%d) = "01" ] || exit Exit a script unless it's the last day of the month date -d fri What date is it this friday
|