6 Replies Latest reply: Apr 20, 2012 12:50 PM by Bill Robinson RSS

Epoch time in NSH

Alexandru Ghionghios

Hi there,

 

I want to get the current standard epoch time (seconds from 1970) in a nsh script. Is there any way to do that as date +%s is not working in nsh? Or maybe you have an ideea of how can I convert something like this 2012-04-18-17-09-25 to epoch time in nsh.

 

Thanks,

 

Alex