Hello mark!
Friday May 22 1998 11:41, mark lewis wrote to Glen Shelton:
GS>>>> I'm working on a project where I need to get the Julian date
GS>>>> for the current year. Something like today would be 139.
GS>>>> I'm new to pascal and not sure where to start. Any help would
GS>>>> be appreciated. Thanks in advane.
SH>>> This is a problem that you have to work out in real life first.
SH>>> For instance, in real life, you'd count the number of days up
SH>>> until this day. Or, to make it simpler, you'd add the number of
SH>>> days in all the previous months, then add the number of days
SH>>> into the current month.
GS>> I knew it was simple, duh. :) Thanks, I figured out the code
GS>> for what I needed to do, after reading your message... :)
ml> you need to also make sure that you take into account leapyears and
ml> february gaining a day during those years...
Yep, I kind of figured that out after looking at some other code that was
similiar to what I needed to do... I need to do some more testing on it. to
make sure it does that. Thanks for the info.
Glen
--- GEcho 1.11+
---------------
* Origin: The Last Star Fighter * (1:130/503)
|