Re: Getting current time [message #4523] |
Tue, 13 June 1995 00:00 |
knipp
Messages: 68 Registered: January 1993
|
Member |
|
|
In article 2pl6@yuma.ACNS.ColoState.EDU, dean@phobos.cira.colostate.edu writes:
>
> Is there a way to get the current time year/Month/day/hour/minute with
> IDL 4.0 running on a Window NT machine?
>
> Kelly
Does SYSTIME no longer work under IDL 4.0? (It does at least with IDL 3.0
on a Windows NT, with IDL 3.6 under SunOS 4.1):
Idl_s2: time = systime(0)
Idl_s2: print,time
Tue Jun 13 13:10:05 1995
Idl_s2: day = strmid(time,0,3) & print, day
Tue
Idl_s2: month=strmid(time,4,3) & print,month
Jun
Idl_s2: dayn=strmid(time,8,2) & print,month
Jun
Idl_s2: hour=strmid(time,11,2) & print,month
Jun
Idl_s2: hour=strmid(time,11,2) & print,hour
13
Idl_s2: min=strmid(time,14,2) & print,min
10
Idl_s2: sec=strmid(time,17,2) & print,min
10
Idl_s2: sec=strmid(time,17,2) & print,sec
05
Idl_s2: year=strmid(time,20,4) & print,year
1995
Karl
Karlheinz Knipp knipp@ipi.uni-hannover.de
|
|
|