You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Keshava Murthy <ke...@bigtec.org> on 2002/09/04 08:59:11 UTC

Adding time interval to System time

Hi,
I need to add time intervals like 0.1hr, 0.2,hr,0.3hr ... with System date &
time.
could someone suggest me how I can do this?.

Also I need to know how I can get system time or any date field in a table
in "dd/mm./yyyy hh24:mi" format.

regards,
Keshav



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Adding time interval to System time

Posted by Keshava Murthy <ke...@bigtec.org>.
Hi Jürgen ,

Your idea is good but when I want to query database and compare Dates, then
I think this will not work.

regards,

Keshav
----- Original Message -----
From: "Jürgen Hoffmann" <jh...@byteaction.de>
To: "'Turbine Users List'" <tu...@jakarta.apache.org>
Sent: Wednesday, September 04, 2002 12:58 PM
Subject: AW: Adding time interval to System time


Hi,

You can always generate the date field in your db as a string field and
use SimpleDateFormat to format your Dates before you write them into the
DB. Then when you read it back from the DB you can parse the String
using SimpleDateFormat and convert it back to Dates.

Kind regards

Jürgen Hoffmann


-----Ursprüngliche Nachricht-----
Von: Keshava Murthy [mailto:keshav@bigtec.org]
Gesendet: Mittwoch, 4. September 2002 08:59
An: Turbine Users List
Betreff: Adding time interval to System time


Hi,
I need to add time intervals like 0.1hr, 0.2,hr,0.3hr ... with System
date & time. could someone suggest me how I can do this?.

Also I need to know how I can get system time or any date field in a
table in "dd/mm./yyyy hh24:mi" format.

regards,
Keshav



--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>



--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


AW: Adding time interval to System time

Posted by Jürgen Hoffmann <jh...@byteaction.de>.
Hi,

You can always generate the date field in your db as a string field and
use SimpleDateFormat to format your Dates before you write them into the
DB. Then when you read it back from the DB you can parse the String
using SimpleDateFormat and convert it back to Dates.

Kind regards
 
Jürgen Hoffmann


-----Ursprüngliche Nachricht-----
Von: Keshava Murthy [mailto:keshav@bigtec.org] 
Gesendet: Mittwoch, 4. September 2002 08:59
An: Turbine Users List
Betreff: Adding time interval to System time


Hi,
I need to add time intervals like 0.1hr, 0.2,hr,0.3hr ... with System
date & time. could someone suggest me how I can do this?.

Also I need to know how I can get system time or any date field in a
table in "dd/mm./yyyy hh24:mi" format.

regards,
Keshav



--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>