[Gambas-user] Unix Date conversion

Benoit Minisini gambas at ...1...
Tue Jul 25 11:12:05 CEST 2006


On Tuesday 25 July 2006 10:22, rolf wrote:
> Hi Laurent
>
> > >    Have a Unix date stored in a table and need to convert it to
> > > something the average human can read... there should be a function for
> > > this... and at the moment I am too tired to write one.. anybody got one
> > > they can part with? I've been looking through the gambas docs and don't
> > > see anything there (although I'm so tired I could walk right past the
> > > answer and not see it).
> >
> > Try this, i just going to do it
> >
> > It's really dirty but it should work
>
> Wouldn't it be better to use/integrate the functions from the C-Library,
> which are tested since many years and offer also localtime-Support??
>
> Then the wheel doesn't need to be reinvented.
>
> Fine regards
> Rolf
>

To Rob:

Maybe Rob should you exume gb.posix? It is really a POSIX thing there! 

I didn't remember what you put in that component, but maybe I didn't take it 
because there were too few things in it for making a component. 

On the other hand, we could have to face other POSIX problems like that, so...

Regards,

-- 
Benoit Minisini




More information about the User mailing list