Is it possible to convert an int field to datetime?
In one of our Sybase ASE DB there is a field called "time" of type int, and
it contains the
value 1093409123. In the application it looks like this is converted to
25.08.2004 06:45
Or is it so that Sybase cannot do this kind of conversation, so it is the
application who is doing this.
Kjell P.
it gives 'Jan 1 1970 1:59AM' which seems to be base datetime value for u.
regards
Manoj
"Kjell Pettersen" <kj...@gpsgroup.cc> wrote in message
news:412c701f$1@forums-1-dub...
> Hi!
>
> Is it possible to convert an int field to datetime?
>
> In one of our Sybase ASE DB there is a field called "time" of type int, and
> it contains the
> value 1093409123. In the application it looks like this is converted to
> 25.08.2004 06:45
See my answer in news://comp.database.sybase
Michael
--
Michael Peppler Data Migrations, Inc.
mpep...@peppler.org http://www.peppler.org/
Sybase T-SQL/OpenClient/OpenServer/C/Perl developer available for short or
long term contract positions - http://www.peppler.org/resume.html
It's news://comp.databases.sybase
Google has it at: http://tinyurl.com/5kq23
HTH,
/Stefan
> "Michael Peppler" <mpep...@bluewin.ch> wrote in message
> news:pan.2004.08.25....@bluewin.ch...
>> On Wed, 25 Aug 2004 03:55:27 -0700, Kjell Pettersen wrote:
>>
>> > Hi!
>> >
>> > Is it possible to convert an int field to datetime?
>> >
>> > In one of our Sybase ASE DB there is a field called "time" of type int,
> and
>> > it contains the
>> > value 1093409123. In the application it looks like this is converted to
>> > 25.08.2004 06:45
>>
>> See my answer in news://comp.database.sybase
>
> It's news://comp.databases.sybase
Thanks - I should type slower... :-)