:ParseDate()


Class

     aprMIME()

 

Syntax

     :ParseDate(cDate, [lTimezone] ) -> aDate

 

Parameters

 

cDate

Date string formatted according to the RFC 822 specifications. see :FormatDate()

 

lTimezone

Optional. Adjust Date / Time for local timezone.

 

Return

A two element array containing the number of seconds since midnight 01/01/1970 and the number of seconds for timezone difference (localization).

 

Description

The :ParseDate() method parses a date string, returning the number of seconds since 1 January 1970 and the difference in seconds between the specified timezone and coordinated universal time. If the string does not specify a timezone, the local timezone is used.

 

This function is not a general purpose date parsing function, and may not be capable of parsing dates for a specific locale. The date string should be in a standard format as outlined in RFC 822, the document which descibes the basic structure of Internet e-mail messages. For a description of the date string format, refer to the :FormatDate() method.

  

See Also

:GetMessageDate(), :SetMessageDate(), :FormatDate()