XSI C Language Support option group (placeholder).
More...
|
| struct tm * | getdate (const char *string) |
| | Convert a date-time string to broken-down time (XSI extension).
|
| |
| char * | strptime (const char *ZRESTRICT s, const char *ZRESTRICT format, struct tm *ZRESTRICT tm) |
| | Parse a date/time string according to a format (XSI extension).
|
| |
| void | swab (const void *ZRESTRICT src, void *ZRESTRICT dest, ssize_t nbytes) |
| | Swap bytes in a block of memory (XSI extension).
|
| |
|
| int | daylight |
| | Non-zero if Daylight Saving Time is in effect.
|
| |
| long | timezone |
| | Offset in seconds from UTC for the current timezone.
|
| |
XSI C Language Support option group (placeholder).
- See also
- https://pubs.opengroup.org/onlinepubs/9699919799/xrat/V4_subprofiles.html
-
https://pubs.opengroup.org/onlinepubs/9699919799/xrat/V4_subprofiles.html
◆ getdate()
| struct tm * getdate |
( |
const char * |
string | ) |
|
Convert a date-time string to broken-down time (XSI extension).
- Parameters
-
| string | Date-time string; the format is determined by the DATEMSK environment variable. |
- Returns
- Pointer to a broken-down time, or NULL on failure.
◆ strptime()
| char * strptime |
( |
const char *ZRESTRICT |
s, |
|
|
const char *ZRESTRICT |
format, |
|
|
struct tm *ZRESTRICT |
tm |
|
) |
| |
Parse a date/time string according to a format (XSI extension).
- Parameters
-
| s | Input string to parse. |
| format | Format string describing the date/time fields to parse. |
| tm | Output: filled-in broken-down time structure. |
- Returns
- Pointer to the first character in
s not consumed by parsing, or NULL on failure.
- See also
- https://pubs.opengroup.org/onlinepubs/9699919799/functions/strptime.html
◆ swab()
| void swab |
( |
const void *ZRESTRICT |
src, |
|
|
void *ZRESTRICT |
dest, |
|
|
ssize_t |
nbytes |
|
) |
| |
◆ daylight
Non-zero if Daylight Saving Time is in effect.
◆ timezone
Offset in seconds from UTC for the current timezone.