The man page on date has an example showing how to get
an output showing the number of seconds since the Epoch.

date -j -f "%a %b %d %T %Z %Y" "`date`" "+%s"

        There is an envokation of date embedded in this command
of

date +%s

I was curious as to what this command does so I tried the long
form and then the short form with:

date -j -f "%a %b %d %T %Z %Y" "`date`" "+%s" >f0
date +%s >f1

I then compared the outputs of f0 and f1 and they are identical.

        What does the long form of this command give us that
date +%s fails to do?

        Nothing is broken, here. I am just curious. Thank you.

Martin McCormick WB5AGZ  Stillwater, OK 
Systems Engineer
OSU Information Technology Department Telecommunications Services Group
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to