Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 6 of 6 total
Thread INTERVALs
Thu, Apr 26 2007 10:29 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

How should I be thinking of intervals from a viewpoint of editing etc. eg TIMESTAMP I know its held in the database as a float but for editing purposes I present it as a string (or a date and a time separately). Should INTERVALS be presented as an integer or what?

Roy Lambert
Fri, Apr 27 2007 9:00 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Roy,

<< How should I be thinking of intervals from a viewpoint of editing etc. eg
TIMESTAMP I know its held in the database as a float but for editing
purposes I present it as a string (or a date and a time separately). >>

Actually, it's an Int64 in ElevateDB.  It's only a float in Delphi.

<< Should INTERVALS be presented as an integer or what? >>

Year-month intervals are integers, whereas day-time intervals are Int64s
internally in EDB:

http://www.elevatesoft.com/edb1d7_tedbyearmonthinterval.htm
http://www.elevatesoft.com/edb1d7_tedbdaytimeinterval.htm

You can use these methods of the TEDBEngine component to convert them to a
string as necessary:

http://www.elevatesoft.com/edb1d7_tedbengine_yearmonthintervaltosqlstr.htm
http://www.elevatesoft.com/edb1d7_tedbengine_daytimeintervaltosqlstr.htm

Or optionally you can just CAST() them to a string in the actual SQL
statement that you're using.

--
Tim Young
Elevate Software
www.elevatesoft.com

Tue, May 1 2007 4:11 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Tim


1. Thanks
2. Wow Int64 some people are obviously going to have looooong intervals Smiley

Roy Lambert
Wed, May 2 2007 11:36 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Roy,

<< 2. Wow Int64 some people are obviously going to have looooong intervals
Smiley>>

It has to hold msecs, hence the need for a big value in some cases.  A year
in days isn't long, but it sure is when counted in msecs. Smiley

--
Tim Young
Elevate Software
www.elevatesoft.com

Wed, May 2 2007 12:04 PMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Tim

>It has to hold msecs, hence the need for a big value in some cases. A year
>in days isn't long, but it sure is when counted in msecs. Smiley

Or when trying to figure out new components Smiley

Roy Lambert
Thu, May 3 2007 4:00 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Roy,

<< Or when trying to figure out new components Smiley>>

Yes. Smiley

--
Tim Young
Elevate Software
www.elevatesoft.com

Image