|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Change date and time
I need to change my date and time for instance to 04/03/02 20:04:03 PDT through the command prompt using Red Hat Linux 7.3. How do this?
|
|
#2
|
|||
|
|||
|
date -s <newdate>
eg. date 0304072312 for today: 2003/07/04 23:12:00 (tested on freebsd, could be different on your system - "man date" is your friend... )
__________________
-- Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more. |
|
#3
|
|||
|
|||
|
Uh oh
I did 'date 0304071514' and it to
Tue Mar 4 07:15:00 PST 2014??? |
|
#4
|
|||
|
|||
|
I have 2 more questions but this seems about right, here we go...
# date 0407151603 # Mon Apr 7 15:16:00 PDT 2003 .... The format is obviously quite different on freebsd than red hat adn I have to admit I like the freebsd format more... Anywho, here's my 2 questions... 1) How do I change it from PDT to PST? 2) Is the time in 24hr format? Just wanna make sure |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > Linux Help > Change date and time |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|