Subscribe to How-To Geek

Recommended: Click Here to Run a Free Scan for Common PC Errors   [Sponsored Link]

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

The Geek is the founder of How-To Geek and a geek enthusiast. When he's not coming up with great how-to articles, he's probably writing at his personal blog. This article was written on 12/1/06 and tagged with: Solaris

Comments (1)

  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


Leave a Comment




Leave your friendly comment here. If you have a computer help question, leave it on the forums instead.

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

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