Subscribe to How-To Geek

Set the Date and Time on Solaris

Setting the system date and time is fairly easy on solaris. Because you can easily set the time from the command line, you can set the time on a server remotely.

date mmddhhmmyy

The date command takes the syntax mmddhhmmyy, or “month day hour minute year”. You have to be superuser to set the time.

Example:

# date 1201010106
Fri Dec  1 01:01:00 PST 2006

| More
This article was originally written on 12/1/06 Tagged with: Solaris

Daily Email Updates

You can get our how-to articles in your inbox each day for free. Just enter your name and email below:


Name:
Email:

Comments (2)

  1. Mohammed Yacoob

    Hi,

    The Unix file system format conatains small shell batches– Where the date time will be formated as like numarical values ” expr `date +%Y%m%d` + 1 ”

    Thanks,
    Md Yacoob

  2. Toby Donald

    Hi,

    I have a very strange problem in Solaris 10.

    I can set the time etc either by the above method or by ntpdate SERVERNAME ETC however after a re-boot the server flicks the time forward 1 hour.

    We have a hybrid environment and the server needs to talk to my Server 2008 DC for Sun Ray authentication and with the problem the sun ray admin tool is unable to locate the AD

    Only temp fix so far is too put the DC clock 1 hour forward but obv this cannot be done.

    Any ideas?

    Cheers,
    Toby


Leave a Comment




Leave your friendly comment here.

If you have a computer help question, click here to leave it on the forums instead.

Note: Your comment may not show up immediately on the site.

Our Friends
Getting Started


About How-To Geek
What Is That Process?
svchost.exe
jusched.exe
dwm.exe
ctfmon.exe
wmpnetwk.exe
wmpnscfg.exe
rundll32.exe
wfcrun32.exe
Ipoint.exe
Itype.exe
Wfica32.exe
Mobsync.exe
conhost.exe
Dpupdchk.exe Adobe_Updater.exe

Copyright © 2006-2009 HowToGeek.com. All Rights Reserved.