up vote 0 down vote favorite
share [g+] share [fb]

At first i tried to change date to good one via gnome via 'Time and Date Settings' but when i clicked on calendar i couldn't change date. So i tried via console... date +%T -s "02:36:00" worked fine and time is set to it now... but date +%m%d -s "1019" returned old date instead of the one i'm trying to set... what's wrong?

link|improve this question

62% accept rate
feedback

2 Answers

up vote 1 down vote accepted

It's happier with a format that's closer to the ISO standard year-month-day: eg. date -s "2009-10-19 13:30:00"

That would set it to 19th October 2009 at 1:30pm.

link|improve this answer
feedback

The format string only controls the output. You need to at least specify a time in your date.

date "10192125"

and optionally a year

date "101921252009"

To set only a time:

date -s "2125"
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.