Richard,

> Anyone got an xTalk algorithm for converting between standard and Julian
> dates they can share?

--Georgian to Julian Date converter
 put the short date into now
  convert now to dateitems
  put item 1 of now  into year
  put item 2 of now  into month
  put item 3 of now  into day
  if month<=2 then
    add 12 to month
    subtract 1 from year
  end if
  put trunc(year/100) into aa
  put (2-aa+trunc(aa/4)) into bb
  put trunc(365.25*year) into cc
  put trunc(30.6001*(month+1)) into dd
  put (bb+cc+dd+day+1720995) into julian

Nelson Zink


Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to