Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-02

Amendment of documentation suggestion for strtotime

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

John

Hi,

In http://lazarus-ccr.sourceforge.net/docs/rtl/sysutils/strtotime.html, I found

"StrToTime converts the string S to a TDateTime time value. The time must consist of 1 to 4 digits, separated by the TimeSeparator character. If two numbers are given, they are supposed to form the hour and minutes."

I thought "What, no seconds ?", but on inspection of the code it seems StrToTime parses the time into 1 to 4 NUMBERS, which are then passed to EncodeTime. Perhaps the words could read something like:

StrToTime converts the string S to a TDateTime time value. The time must consist of 1 to 4 integers, separated by the TimeSeparator character. Numbers are supposed to form the hour, minute, second and millisecond, in the order found, and are converted to a time using EncodeTime. An am/pm string may be appended, using 'TimeAMString', TimePMString, or 'a', 'A', 'p' or 'P'.

cheers,
John Sunderland

Reply by email