Re: [Gambas-user] How to convert unix timestamp into gambas date and time

2012-02-03 Thread Rolf Schmidt
Hello Benoît > Unix time stamp is a number of seconds since 1/1/1970. > > So to convert a Gambas date to Unix timestamp: > > Print DateDiff(CDate("1/1/1970"), Now, gb.Second) > > And to convert an Unix timestamp to Gambas date: > > Print DateAdd(CDate("1/1/1970"), TimeStamp, gb.Second)

Re: [Gambas-user] How to convert unix timestamp into gambas date and time

2012-02-03 Thread Benoît Minisini
Le 03/02/2012 15:48, Rolf Schmidt a écrit : > > @Ron. > Your Module is excellent, but I can't belief, that a programming > language for the UNIX-environment isn't able to handle timestamps only > after "reinventig the wheel". > I think, we shoud ask Benoit why he didn't implement such a function or

Re: [Gambas-user] How to convert unix timestamp into gambas date and time

2012-02-03 Thread Rolf Schmidt
Hi Rolf, hi Ron. is there a function which allows to convert an unix timestamp into the appropriated date/time in Gambas3? If, how is it called and how to use. >> >>> Take a look at this one: >>> http://gambasdoc.org/help/lang/stat?v3 >>> file.stat should deliver a file date. O

Re: [Gambas-user] How to convert unix timestamp into gambas date and time

2012-02-03 Thread Randall Morgan
I haven't tried it but try passing the nix time stamp to the secods parameter of the date/time function. I seem to recall someone saying this would do the trick... Set the minutes, hours ect. to 0. On Fri, Feb 3, 2012 at 1:42 AM, Ron wrote: > Just google for gambas calculate get unix time > >

Re: [Gambas-user] How to convert unix timestamp into gambas date and time

2012-02-03 Thread Rolf-Werner Eilert
Am 03.02.2012 10:32, schrieb Rolf Schmidt: > Hi "another Rolf" > >>> is there a function which allows to convert an unix timestamp into the >>> appropriated date/time in Gambas3? >>> >>> If, how is it called and how to use. > >> Take a look at this one: >> http://gambasdoc.org/help/lang/stat?v3 >>

Re: [Gambas-user] How to convert unix timestamp into gambas date and time

2012-02-03 Thread Ron
Just google for gambas calculate get unix time Regards, Ron_2nd. > Hi "another Rolf" > >>> is there a function which allows to convert an unix timestamp into the >>> appropriated date/time in Gambas3? >>> >>> If, how is it called and how to use. >> Take a look at this one: >> http://gambasdoc.org/

Re: [Gambas-user] How to convert unix timestamp into gambas date and time

2012-02-03 Thread Rolf Schmidt
Hi "another Rolf" >> is there a function which allows to convert an unix timestamp into the >> appropriated date/time in Gambas3? >> >> If, how is it called and how to use. > Take a look at this one: > http://gambasdoc.org/help/lang/stat?v3 > file.stat should deliver a file date. Or did I get you

Re: [Gambas-user] How to convert unix timestamp into gambas date and time

2012-02-02 Thread Rolf-Werner Eilert
Am 02.02.2012 19:41, schrieb Rolf Schmidt: > Hi everybody out there > > is there a function which allows to convert an unix timestamp into the > appropriated date/time in Gambas3? > > If, how is it called and how to use. > > Many thanks > Rolf Take a look at this one: http://gambasdoc.org/help/la

[Gambas-user] How to convert unix timestamp into gambas date and time

2012-02-02 Thread Rolf Schmidt
Hi everybody out there is there a function which allows to convert an unix timestamp into the appropriated date/time in Gambas3? If, how is it called and how to use. Many thanks Rolf -- Keep Your Developer Skills Curre