This function returns the number of seconds since January 1st 1970, for the date and time that the datestring parameter specifies. Read further in the date string parser section below.
If the input string can not be parsed the function return zero.
The following is copied from the original curl_getdate manual page.
PARSING DATES AND TIMES
A "date" is a string, possibly empty, containing many items separated by whitespace. The whitespace may be omitted when no ambiguity arises. The empty string means the beginning of today (i.e., midnight). Order of the items is immaterial. A date string may contain many flavors of items:
Days of the week may be spelled out in full: Sunday, Monday, etc or they may be abbreviated to their first three letters, optionally followed by a period. The special abbreviations Tues for Tuesday, Wednes for Wednesday and Thur or Thurs for Thursday are also allowed.
A number may precede a day of the week item to move forward supplementary weeks. It is best used in expression like third monday. In this context, last DAY or next DAY is also acceptable; they move one week before or after the day that DAY by itself would represent.
The string tomorrow is worth one day in the future (equivalent to day), the string yesterday is worth one day in the past (equivalent to day ago).
AUTHORS
Originally written by Steven M. Bellovin smb@research.att.com while at the University of North Carolina at Chapel Hill. Later tweaked by a couple of people on Usenet. Completely overhauled by Rich $alz rsalz@bbn.com and Jim Berets jberets@bbn.com in August, 1990.