Time please..


Dates and Times are things that just seem to fly by. Never enough time in a day! Some handy hints for using the getting the date and time with linux which might be useful for all sorts of things…

date
well just…

date
Tue Sep 13 19:29:46 BST 2011

seconds

date "+%s"
1315938728

day

date "+%d"

month

date "+%h"

year

date "+%Y"

time example

date "+%H:%M"

previous hour

TZ=aaa24 date +%H

previous day

TZ=aaa24 date +%d

more?

man date
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s