Re: formatting output from caldat to label animation frames [message #32319] |
Thu, 03 October 2002 03:31 |
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
|
|
|