parse_formatted_timestamp
Description:
[ Version ( since = "5.2" ) ]
public DateTime? parse_formatted_timestamp (string value, DateDMY first, DateDMY second, DateDMY third, char sep)
This function is similar to DateTime.from_iso8601 (
with first
being G_DATE_YEAR
, second
being G_DATE_MONTH
, third
being
G_DATE_DAY
and sep
being '-') but allows one to specify the expected date format.
Parameters:
value |
a string to be parsed |
first |
a DateDMY specifying which of year, month or day appears first (in the first bytes
) in |
second |
a DateDMY specifying which of year, month or day appears second (in the first
bytes) in |
third |
a DateDMY specifying which of year, month or day appears third (in the first bytes
) in |
sep |
specifies the expected separator character between year, month and day (for example '-') |
Returns:
a new DateTime if |
Namespace: Gda
Package: libgda-6.0