MySQL 9.6.0
Source Code Documentation
s_mysql_mysql_timestamp Struct Reference

This service defines the timestamp function api. More...

#include <mysql_timestamp.h>

Public Attributes

int(* make_iso8601_timestamp_now )(char *buffer, size_t size)
 Make and return an ISO 8601 / RFC 3339 compliant timestamp. More...
 
int(* make_iso8601_timestamp )(char *buffer, ulonglong utime, enum enum_iso8601_tzmode mode)
 Make and return an ISO 8601 / RFC 3339 compliant timestamp. More...
 

Detailed Description

This service defines the timestamp function api.

Member Data Documentation

◆ make_iso8601_timestamp

int(* s_mysql_mysql_timestamp::make_iso8601_timestamp) (char *buffer, ulonglong utime, enum enum_iso8601_tzmode mode)

Make and return an ISO 8601 / RFC 3339 compliant timestamp.

Accepts the log_timestamps global variable in its third parameter.

Parameters
bufA buffer of at least iso8601_size bytes to store the timestamp in. The timestamp will be \0 terminated.
utimeMicroseconds since the epoch
modeif 0, use UTC; if 1, use local time
Return values
lengthof timestamp (excluding \0)

◆ make_iso8601_timestamp_now

int(* s_mysql_mysql_timestamp::make_iso8601_timestamp_now) (char *buffer, size_t size)

Make and return an ISO 8601 / RFC 3339 compliant timestamp.

Parameters
buffera buffer of at least iso8601_size bytes to store the timestamp in. The timestamp will be \0 terminated.
sizesize of the buffer.
Return values
0if size < iso8601_size else length of the timestamp (excluding \0)

The documentation for this struct was generated from the following file: