Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread DecodeDate and DecodeTime
Thu, Nov 10 2016 4:29 PMPermanent Link

Richard Mace

Hi,

I notice that there is an EncodeDate and an EncodeDateTime, however, I was wondering if there was a DecodeDate and a DecodeDateTime?

Basically, I am wanting to work out the difference (Seconds, minutes, hours etc.) between 2x DateTime's and in Lazarus I have done it by working on the Decoded date and time.

Thanks

Richard
Thu, Nov 10 2016 6:27 PMPermanent Link

Walter Matte

Tactical Business Corporation

Decode Date

See Functions:

- DayOf
- MonthOf
- YearOf
- HourOf
- MinuteOf
- MSecondOf

Walter
Fri, Nov 11 2016 1:02 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Richard,

<< I notice that there is an EncodeDate and an EncodeDateTime, however, I was wondering if there was a DecodeDate and a DecodeDateTime? >>

See Walter's answer.  But, as to the reasoning: EWB doesn't do var parameters, so it can't do a DecodeDate like Delphi can.

Tim Young
Elevate Software
www.elevatesoft.com
Image