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

Home » Public Forums » archive » Re: formatting output from caldat to label animation frames
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: formatting output from caldat to label animation frames [message #32319] Thu, 03 October 2002 03:31
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Thomas Wright wrote:

> I have been working with Julian dates and would like to label
> animation frames with date and time expresssed as mm/dd/yyyy
> hh:mm:ss. I can get the values for month, day, year, hour, minute and
> second using CALDAT, but they are widely spaced, and when I add '/' or
> ':' I get something like:
>
> 7/ 26/ 1981 6: 17: 56
>
> instead of 7/26/1981 6:17:56.
> How can I create variables without spaces from CALDAT output to get
> normal looking text?
>
> Tom Wright



CALDAT, 2529161.36, Mo, D, Y, H, M, S

print,strtrim(mo,2)+'/'+strtrim(d,2)+'/'+strtrim(y,2)+$
' '+strtrim(h,2)+':'+strtrim(m,2)+':'+strtrim(fix(s),2)

7/4/2212 18:0:0

There may be a chance to do it by format codes.

Reimar



--
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
http://www.fz-juelich.de/icg/icg-i/
============================================================ ======
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: formatting output from caldat to label animation frames
Next Topic: Re: Array Subscripting Memory Usage (watch out!)

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

Current Time: Wed Oct 08 18:41:42 PDT 2025

Total time taken to generate the page: 0.00477 seconds