How to convert date to string in unix shell -


i need convert date string

i have sql database running on unix box stores date in str eg:1371509465

i run query find if future dates exist in database

is there equivalent function php's strtotime in shell ?

linux:

date --date='@1371509465' 

mac os/x:

date -r 1371509465 

perl:

perl -e "print scalar localtime(1371509465);" 

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -