syntax :
date -j -f 'specification of input format 'input date and/or time' +%s
specification of input format = how is the date being define by you for "date" command to process
input date and/or time = are the digits input by you for "date" to calculate
e.g.
date -j -f '%Y%m%d-%H%M%S' '20090401-000000' +%sand you shall get your epoch time (in seconds) after pressing enter.
Ciao !!!
No comments:
Post a Comment