Click to See Complete Forum and Search --> : Changing the year(in current date ) in solaris Urgent!!!
nc123
August 14th, 2006, 06:23 AM
Hi can anyone help me how to change the year of current date in solaris..
pls specify the format so that i can change its year ..
i know this
"date mmdd hhmn" but how do i change teh year i wannt to change from current year to different year
ZuK
August 14th, 2006, 06:37 AM
man date gave me this
date [-u|--utc|--universal] [MMDDhhmm[[CC]YY][.ss]]
but that is not solaris
Kurt
nc123
August 14th, 2006, 06:52 AM
hi Kurt thnx for reply,
so u mean if current date is suppose 2Aug2000 and if i want to change to todays date that is 14Aug2006 9pm then
i will write as below
"081421001906"
i didnt understand abt -u n other options
Pls suggest
ZuK
August 14th, 2006, 07:03 AM
I understand to set todays date would be
date 0814140306
Kurt
edit: in your example that would be
date 0814210006
nc123
August 14th, 2006, 07:53 AM
thnks .. i cld change it ..by another option with date command.. its working
i used "date -u 081421002006".its working thanks
did u tried ur command on any unix
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.