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)
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
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
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
>
>
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
>>
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/
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
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
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