[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: convert standard time to unix time bash

I think cross posting to so many lists, particularly across domains is
considered rude.


On Thu, Jun 18, 2009 at 11:30 AM, Tony Asnicar<asnicar81@gmail.com> wrote:
> but how can I convert standard time to unix time? :D

date +%s

You can mix it with -d for fun things, if you need the time for specific dates:

date +%s -d '4 days ago'
date +%s -d '1970-01-01UTC'

Reply to: