[Gambas-devel] Date Value

Benoit Minisini gambas at ...1...
Tue Mar 29 09:49:58 CEST 2005


On Friday 25 March 2005 15:10, nigel at ...2... wrote:
> Benoit,
>
> I'm looking at adding more date related functions to gambas, for example a
> julian function to return julian dates from gregorian.  Looking at the code
> in gbx_date.c I am uncertain as to whether value->_date.date (ndays) is the
> julian value. (It is a slightly different value from the values calculated
> using the formula that I am use to). e.g. The gambas date value for
> 01/01/2005 is 2485476 whilst the Julian is 2453372.
>
> Is the value intended to be Julian or is the value only specific to gambas?
>
> Kind regards
>
> Nigel

I took some code from the glib for managing dates, but I patched it because I 
didn't get the result I wanted - Maybe there were bugs, or maybe I was wrong.

The Gambas date value has no meaning in absolute. It is just days from a 
arbitrary day in the past. The value was not intended to be Julian, but it 
could be without any problems - except for people that stored this value 
directly.

Regards,

-- 
Benoit Minisini
mailto:gambas at ...1...




More information about the Devel mailing list