stMktime, stWriteTime
date and time handling
- Provided by: atfs-dev (Version: 1.4pl6-15)
- Source: shapetools
- Report a bug
date and time handling
#include <config.h>
#include <sttk.h.h>
time_t stMktime (char *string);
char* stWriteTime (time_t date);
stMktime scans the given string and tries to read a date and time from it. It understands various formats of date strings. The following is a list of all valid formats, optional parts in brackets.
A certain time, given together with the date must always have the following form.
The time value may be placed anywhere in the date string: at the beginning, at the end, or somewhere in the middle. Any amount of whitespace may be given between a field of the time value and the separating colon. The time is always considered to be local time.
stWriteTime generates a time string similar to asctime(3) from its date argument.
Time Zone Names within the time string (like `MET') are not handled properly. In most cases they will cause a failure.