Re: [Gambas-user] forcing time zone localization

2013-02-04 Thread Kevin Fishburne
On 02/03/2013 08:11 AM, Benoît Minisini wrote: > Le 03/02/2013 14:03, Benoît Minisini a écrit : >> To get the current timezone, you do Round(Frac(Date(Now)) * 24). Then >> you can use this value to convert a date to/from UTC. >> >> Regards, >> > So scatterbrained... I have added System.TimeZone pro

Re: [Gambas-user] forcing time zone localization

2013-02-03 Thread Benoît Minisini
Le 03/02/2013 14:03, Benoît Minisini a écrit : > > To get the current timezone, you do Round(Frac(Date(Now)) * 24). Then > you can use this value to convert a date to/from UTC. > > Regards, > So scatterbrained... I have added System.TimeZone property for a while. It returns the interval with UTC

Re: [Gambas-user] forcing time zone localization

2013-02-03 Thread Benoît Minisini
Le 03/02/2013 10:28, Ian Haywood a écrit : > On Sun, Feb 3, 2013 at 7:11 PM, Kevin Fishburne > wrote: > \ > >> The date/time is sent/received as a float and stays synchronized. The >> problem is (as you say) when the float is converted to a string the time >> zone is applied. I need a way to print

Re: [Gambas-user] forcing time zone localization

2013-02-03 Thread Ian Haywood
On Sun, Feb 3, 2013 at 7:11 PM, Kevin Fishburne wrote: \ > The date/time is sent/received as a float and stays synchronized. The > problem is (as you say) when the float is converted to a string the time > zone is applied. I need a way to print > > Format$(CDate(DateCurrent), " d, , hh:nn

Re: [Gambas-user] forcing time zone localization

2013-02-03 Thread Kevin Fishburne
On 02/01/2013 05:53 PM, Benoît Minisini wrote: > Le 01/02/2013 08:37, Kevin Fishburne a écrit : >> On 01/31/2013 04:29 AM, Benoît Minisini wrote: >>> Le 31/01/2013 08:35, Kevin Fishburne a écrit : I have a client/server application in which the server tells the client the date and time. T

Re: [Gambas-user] forcing time zone localization

2013-02-01 Thread Benoît Minisini
Le 01/02/2013 08:37, Kevin Fishburne a écrit : > On 01/31/2013 04:29 AM, Benoît Minisini wrote: >> Le 31/01/2013 08:35, Kevin Fishburne a écrit : >>> I have a client/server application in which the server tells the client >>> the date and time. The date and time is calculated by the server from an

Re: [Gambas-user] forcing time zone localization

2013-02-01 Thread Jussi Lahtinen
Isn't unix time independent of timezones (it always uses UTC)? Can you use it? $ date +%s Jussi On Thu, Jan 31, 2013 at 9:35 AM, Kevin Fishburne < kevinfishbu...@eightvirtues.com> wrote: > I have a client/server application in which the server tells the client > the date and time. The date an

Re: [Gambas-user] forcing time zone localization

2013-02-01 Thread Bruce
Kevin, Some thoughts expresed inline. On Fri, 2013-02-01 at 02:37 -0500, Kevin Fishburne wrote: > On 01/31/2013 04:29 AM, Benoît Minisini wrote: > > Le 31/01/2013 08:35, Kevin Fishburne a écrit : > >> I have a client/server application in which the server tells the client > >> the date and time.

Re: [Gambas-user] forcing time zone localization

2013-01-31 Thread Kevin Fishburne
On 01/31/2013 04:29 AM, Benoît Minisini wrote: > Le 31/01/2013 08:35, Kevin Fishburne a écrit : >> I have a client/server application in which the server tells the client >> the date and time. The date and time is calculated by the server from an >> arbitrary starting point and at an arbitrary scal

Re: [Gambas-user] forcing time zone localization

2013-01-31 Thread Benoît Minisini
Le 31/01/2013 08:35, Kevin Fishburne a écrit : > I have a client/server application in which the server tells the client > the date and time. The date and time is calculated by the server from an > arbitrary starting point and at an arbitrary scale, but based on the > server's system clock so that

[Gambas-user] forcing time zone localization

2013-01-30 Thread Kevin Fishburne
I have a client/server application in which the server tells the client the date and time. The date and time is calculated by the server from an arbitrary starting point and at an arbitrary scale, but based on the server's system clock so that time still "advances" when the server application i