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

Home » Public Forums » archive » julday() and fractional days
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: julday() and fractional days [message #56626 is a reply to message #56465] Thu, 01 November 2007 09:04 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Conor writes:

> I suppose for the very flexible solution you would hope for julday to
> start with something like:
>
> function julday,mon,day,year,hr,min,sec
>
> min += (sec - floor(sec))/60.0
> hr += (min - floor(min))/60.0
> day += (hr - floor(hr))/24.0
> year += (mon - floor(mon))/12.0
> day += (year - floor(year))*365
>
>
> then you can have the best of both worlds.

Geez, you could write a wrapper that even put the day
and the month in the right place! :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: read_tiff only looks in current working directory?
Next Topic: Re: IDL 6.4.1 patch for Leopard

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

Current Time: Sat Oct 11 15:40:07 PDT 2025

Total time taken to generate the page: 1.43913 seconds