The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > SUN Solaris
Google UNIX.COM


SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Compare date from db2 table to yesterday's Unix system date sasaliasim Shell Programming and Scripting 8 04-24-2008 03:04 AM
Move A File With Same Date,don't Change The Desitination Dir Date jee.ku2 UNIX for Dummies Questions & Answers 1 01-09-2008 10:42 AM
Change System Date Ricole AIX 1 07-26-2006 07:29 PM
Change new filename with date ?? sabercats Shell Programming and Scripting 9 02-13-2006 02:12 PM
file date vs. system date ober5861 UNIX for Dummies Questions & Answers 8 09-11-2001 11:36 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 06-18-2007
Registered User
 

Join Date: Mar 2007
Posts: 51
change system date in solaris

dears

any one know how to change system date in solaris
Reply With Quote
Forum Sponsor
  #2  
Old 06-18-2007
encrypted's Avatar
Registered User
 

Join Date: Feb 2004
Location: Oslo, Norway
Posts: 218
As root:

#date <date_you_want_to_change_to>
Reply With Quote
  #3  
Old 06-18-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
or use ntp
Reply With Quote
  #4  
Old 06-18-2007
Registered User
 

Join Date: Sep 2006
Posts: 1,580
Quote:
Originally Posted by porter View Post
or use ntp
you use ntp to change the system date? or you use it to synchronize the time with an ntp server?
Reply With Quote
  #5  
Old 06-18-2007
Neo's Avatar
Neo Neo is offline
Administrator
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 4,441
Quote:
Originally Posted by ghostdog74 View Post
you use ntp to change the system date? or you use it to synchronize the time with an ntp server?
Sure, using NTP changes the system date, so porter is technically corrrect.
Reply With Quote
  #6  
Old 06-18-2007
Registered User
 

Join Date: Jun 2007
Posts: 6
Date on Solaris Machine

I think that you can use the command
date -u command or date -s command with the arguments.
Former takes the argumemt in format ddmmyyyyhhmm and latter a string that you get when you give date command on command prompt..this string goes in quotes as argument to date -s
Alternatively you can use ntpdate command to set date or synchronize the date with another machine.
Reply With Quote
  #7  
Old 06-18-2007
encrypted's Avatar
Registered User
 

Join Date: Feb 2004
Location: Oslo, Norway
Posts: 218
NTP is a good option for time syncronisation.
However, I guess for solaris if your system is way too behind (more than 14 mins I think) NTP will fail.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
solaris

Thread Tools
Display Modes




All times are GMT -7. The time now is 01:30 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0