Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Julian Date Conversion
Message
From
27/01/2003 16:37:28
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00745969
Message ID:
00746001
Views:
26
Hi David,
I'm alittle confused. Doesn't your function convert the value 2003001 to the number of days in the year 2003? However, a Julian Day Number is a count of days that have elapsed since Greenwich mean time at noon on 1 January 4713 B.C. The Julian Date is the Julian day number followed by the fraction of the day elapsed since the preceding noon. The julian date for today after 12:00 noon would be 2452667, not 2003027. Did I miss something? I have not seen any VFP code to convert a julian date back to a gregorian date only the VFP function sys(11) that converts a gregorian date to a julian date. Perhaps he is not really using valid julian dates?

>Sony,
>
>? date( int( val( left( juldate, 4 ) ) ), 1, 1 ) + int( val( right( juldate, 3 ) ) )
>
>>I have a julian date that I need to convert into VFP date format.
>> Does anyone know the command to do it? I checked Sys(10) & Sys(11). They don't seem to help..
>>julian date looks like this. 2003001
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform