Linux epoch time
In Linux, is there an easy way to set the epoch time value directly?? I know there's a bunch of ways to format the date command, but none of them appears to fit our needs.
What we're doing is using an Android phone to set the time on an embedded Linux device when it connects. Getting the epoch time on the Android is a no brainer, but all attempts to get this information accepted by the Linux device have been开发者_如何学Go rebuffed.
I don't have a machine I can run it on right now, but does:
date -s @1190000000
work for you? (Obviously change the timestamp)
精彩评论