Time Adjustment

avx

Verified User
Joined
Oct 15, 2005
Messages
21
How can I adjust the time using Admin Account I own a server with directadmin installed and I cant seemed to figure out how to chnage the system time...
 
ok I found this using google
Code:
http://help.directadmin.com/item.php?id=52


date --set="Oct 20 15:52:29 2004"but I don;t want my time look like military time

I want my time like this
3:44pm
 
The date command under *nix uses 24 hour format but that has nothing to do with how your applications display it. I have never looked but I do not think the date command will accept 12 hour format.
 
HOW CAN I synchronize IS WITH NIST.TIME.GOV SO ITS ALWAYS ACCURATE.. BECAUSE IT KEEPS GOING 4MINUTES FORWARD
 
IF YOU HAD CLICKED ON THE LINK IN MY FIRST POST YOU WOULD HAVE FOUND IT ALREADY. IT'S THE SECOND LINK IN THE SEARCH RESULTS.
 
DamnSkippy said:
The date command under *nix uses 24 hour format but that has nothing to do with how your applications display it. I have never looked but I do not think the date command will accept 12 hour format.
Unlike MS Windows commands, unix commands are very forgiving:

For example:
Code:
[root@of1 ~]# date -s "today 3:53 pm"
Tue Apr 25 15:53:00 PDT 2006
[root@of1 ~]# date -s "tomorrow 2:54 pm"
Wed Apr 26 14:54:00 PDT 2006
[root@of1 ~]#
[root@of1 ~]#
[root@of1 ~]# date -s "yesterday 3:54:37 pm"
Tue Apr 25 15:54:37 PDT 2006
[root@of1 ~]#
Jeff
 
LOL cool Jeff, funny that you can run a command so many times and never know i t does stuff like that. I guess it is all in how much you want to know when you first learn the command.
 
man date is deprecated; on my desktop systems (running Mandriva) I can type info coreutils date to get a lot of information about the date command.
:)

Shutdown works similarly, but I've never tried shutdown Tuesday at 3:30 so I don't know if it works or not.

Jeff
 
Back
Top