tm2timestamp()
#
Converts a struct tm
time representation into an ISO 8601 formatted timestamp string.
Prototype
char *tm2timestamp(
char *bf,
int bfsize,
struct tm *tm
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
Buffer to store the formatted timestamp. |
|
|
Size of the buffer |
|
|
Pointer to a |
Return Value
Returns a pointer to the buffer bf
containing the formatted timestamp.
Notes
The output format follows the ISO 8601 standard: YYYY-MM-DDTHH:MM:SS.0±HHMM
.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples