Re: [Gambas-user] extracting a fractional year from a date

2013-11-05 Thread Kevin Fishburne
On 11/05/2013 09:16 PM, Benoît Minisini wrote: > Le 06/11/2013 03:04, Kevin Fishburne a écrit : >> If you have a Date, is there a reasonably simple way to extract which >> fraction of the year it is? For example a date of 12:00 am on January >> 1st would return zero and 11:49 pm on December 31st wo

Re: [Gambas-user] extracting a fractional year from a date

2013-11-05 Thread Benoît Minisini
Le 06/11/2013 03:04, Kevin Fishburne a écrit : > If you have a Date, is there a reasonably simple way to extract which > fraction of the year it is? For example a date of 12:00 am on January > 1st would return zero and 11:49 pm on December 31st would return one. > The stuff I'm trying now using the

[Gambas-user] extracting a fractional year from a date

2013-11-05 Thread Kevin Fishburne
If you have a Date, is there a reasonably simple way to extract which fraction of the year it is? For example a date of 12:00 am on January 1st would return zero and 11:49 pm on December 31st would return one. The stuff I'm trying now using the Month and Day functions seems...wrong. If there's