comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: HELP with systime()
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: HELP with systime() [message #10877] Wed, 11 February 1998 00:00 Go to previous message
safier is currently offline  safier
Messages: 12
Registered: March 1995
Junior Member
>>>> > "Mark" == Mark Elliott <mark@mail.mmrrcc.upenn.edu> writes:

Mark> Is there a way to convert a binary time value like the one
Mark> returned by

Mark> timeval = systime(1)

Mark> into a date string like

Mark> DOW MON DD HH:MM:SS YEAR ?


Mark> I've found bin_date() but it accepts only the
Mark> ascii_time format for input. I'd like to convert the number
Mark> of seconds since 1/1/1970 into the month,day,year,... that
Mark> it corresponds to.


If you are on a unix system, you can use spawn and the Unix date
command:

spawn('date',mydate)

The output of date will be in mydate.


Hope this helps...

Pedro
--
Pedro N. Safier | "God offers to everyone his
Department of Astronomy | choice between truth and repose.
U. of Maryland at College Park | Take which you please--you can
phone: 301-405-1531; fax: 301-314-9067 | never have both." R. W. Emerson
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: leaving room for a page title
Next Topic: Re: IDL: are dynamic arrays supported?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 06:45:37 PDT 2025

Total time taken to generate the page: 0.63731 seconds