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

Home » Public Forums » archive » Re: Julian Dates...Again
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: Julian Dates...Again [message #53764 is a reply to message #53763] Tue, 01 May 2007 10:52 Go to previous message
James Kuyper is currently offline  James Kuyper
Messages: 425
Registered: March 2000
Senior Member
David Fanning wrote:
> Folks,
>
> OK, I don't have time for this today... :-(
>
> Suppose I have a time string: "2007118".
> The first four digits are the year. The last
> three digits are the day of the year. (e.g.,
> Jan 10, 2007 is 010 and Feb 1, 2007 is 032, etc.)
>
> I can't seem to put my hands on a function that will
> convert the day of the year to a month and day value,
> so that I can create a Julian number with JULDAY.
> (Although I can imagine I have written such a thing in
> the past. All I have to do is find that damn formula
> for leap year processing and...)

Well, you could do the following:

CALDATE,JULDAY(1, 118, 2007), month, day

But I presume the JULDAY call itself will do what you really need. :-)
This technique of using January 118th to find the 118th day of the
year seems to work with a lot of different date-handling functions on
a wide variety of platforms.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Julian Dates...Again
Next Topic: Antarctic Temperature Data

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

Current Time: Fri Oct 10 07:31:51 PDT 2025

Total time taken to generate the page: 1.03219 seconds