[glug-t] One Day One GNU/Linux Command (DATE)

One Day One GNU/Linux Command
=============================

date -  Print/Set the system data and time 

Summary: 

date will print the time information in different formats 
and user can also make a custom formats using the options.

Example:

$ date -- Print the current date and time.

$ date --rfc -- Print the date in RFC-822 format.

$ date -u -- Print time in UTC format.

$ date -d '3year ago' -- Same date but 3 yrs ago.

$ date -d '3year' -- Same date but after 3 yrs.

$ date --date='2 days ago' -- Day before yesterday.

$ date --date='2 days' -- Day after tomorrow.

$ date --set='-10 minutes' -- Reduce 10m in current time and set.

$ date '+%b %_e %a %T %p %Z %Y' -- Current date in custom format.

Read : info date or man date

Bye :)
-- 
Bharathi S

---------------------------------------------------------------
To unsubscribe send a mail to glug_t-request@xxxxxxxxxxxxx with 
'unsubscribe' as subject.

Website: http://glugt.linuxisle.com

Other related posts: