Subject: | |
From: | |
Reply To: | |
Date: | Sat, 18 Feb 2006 12:33:03 +0530 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
finally able to tuck the GMT date and time into a variable. The following is
the method I used.
xeq sh.hpbin.sys "-c 'callci setvar dateVar `date +%Y%m%d`'"
xeq sh.hpbin.sys "-c 'callci setvar timeVar `date +%Y%H%M%S`'"
setvar GSTtime str("!dateVar",1,8) + "." + str("!timeVar",5,6)
The following is the output for which i was trying...and got it..
20060218.064311
Surprising, why %Y is also used in timeVar .. !!!! :)
-
Prakash.
"A diamond is just another piece of coal that did well under pressure"
> On 2/17/06, [log in to unmask] <[log in to unmask] >
> wrote:
> >
> >
> >
> >
> >
> > hi
> > you could try:
> > date.hpbin.sys "-u +%y%m%d%H%M%S"
> >
> > works for me...
> >
> > /per
> > --------------------------------------------------
> > Per Östberg / [log in to unmask]
> > tel 08-58581213 / mob 070-4840253
> > IMI, C1 61
> > Karolinska Universitetssjukhuset, Huddinge
> > 141 86 HUDDINGE
> > --------------------------------------------------
> >
> >
> >
> >
> > Jaya Prakash K
> > <jayaprakashgoud@
> > GMAIL.COM <http://gmail.com/>>
> > Till
> > Sänt av: HP-3000 [log in to unmask]
> > Systems
> > Kopia
> > Discussion
> > < [log in to unmask]
> > Ärende
> > TC.EDU <http://tc.edu/>> [HP3000-L] Need
> > Date & Time in GMT
> > time zone
> >
> > 2006-02-17 13:02
> >
> >
> > Sänd svar till
> > Jaya Prakash K
> > <jayaprakashgoud@
> > GMAIL.COM <http://gmail.com/>>
> >
> >
> >
> >
> >
> >
> > Hi All!
> >
> > Is there a way to get the DATE & Time of the system in GMT Time Zone in
> > MPE
> > or mpex.
> >
> > I could get the date and time of local time zone using the system
> > varaible
> > !HPDATETIME but is there any method to get the equivalent date time in
> > GMT.
> >
> > Iam able to do the same in MPE/ix Shell script with the following
> > command..
> >
> > date -u +%y%m%d%H%M%S
> >
> > but want to use the command in Suprtool and write the GMT time into a
> > text
> > file.
> >
> > Any help's greatly appreciated.
> >
> > Regards
> > Prakash.
> >
> > * To join/leave the list, search archives, change list settings, *
> > * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
> >
> >
> >
>
>
>
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|
|
|