comp.lang.idl-pvwave archive - RDF feed
type: channel
description: Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
items: Day of Year... Too lazy for a two-line solution...

Day of Year... Too lazy for a two-line solution...
type: item
description: Hi IDL Wizards, I handle all date manipulation in my routines using JULDAY(), CALDAT, and the C() format code. Going from Day-of-Year to Julian Date is easy: Julian_Date = JULDAY(1,Day_Of_Year,Year,0,0,0) Getting Day-of-Year back out requires this, *unless you can do better*: CALDAT,Julian_Date,Null,Null,Year Day_Of_Year = Julian_Date - JULDAY(12,31,Year-1,0,0,0) I would really like a one-line solution with no stray variables. Anyone have one? --Edward H.
creator: MarioIncandenza
date: 2008-08-22T18:49:35-00:00