This is how I do it currently in GAlarm:

I save the date variable this way:
Settings[sPath &/ "Date&Time"] = CFloat(hAlarm.hTotal)

And load it this way:
hAlarm.hTotal = Settings[sPath &/ "Date&Time", Null]

So, no more string conversions, but it's still not right...


Jussi


On Tue, Dec 20, 2016 at 2:53 AM, Benoît Minisini <
gam...@users.sourceforge.net> wrote:

> Le 20/12/2016 à 01:23, Jussi Lahtinen a écrit :
> > Or additional requirement for the string, examples "10/01/2016 GMT" or
> > "10/01/2016 Local".
> >
> >
> > Jussi
> >
> > On Tue, Dec 20, 2016 at 2:16 AM, Jussi Lahtinen <
> jussi.lahti...@gmail.com>
> > wrote:
> >
> >> That is bit confusing. Would it be better if Date() function would
> accept
> >> one more argument "TimeZone".
> >> Example:
> >>
> >> Date("10/01/2016", gb.GMT)
> >>
> >> or
> >>
> >> Date("10/01/2016", gb.Local)
> >>
> >>
> >> What you think?
> >>
> >>
> >> Jussi
> >>
>
> I think that you misuse the Date() function too.
>
> Date() is not a string to date conversion function.
>
> You must use:
>
> - CDate() for an UTC date conversion.
>
> - Val() for a local time conversion.
>
> Regards,
>
> --
> Benoît Minisini
>
> ------------------------------------------------------------
> ------------------
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today.http://sdm.link/intel
> _______________________________________________
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/intel
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to