|  | MySQL 9.5.0
    Source Code Documentation | 
Represents a MySQL temporal value (DATE, TIME, DATETIME or TIMESTAMP) - an extension to the ECMA set of JSON scalar types, types J_DATE, J_TIME, J_DATETIME and J_TIMESTAMP respectively. More...
#include <json_dom.h>
| Public Member Functions | |
| Json_temporal () | |
| virtual enum_field_types | field_type () const =0 | 
|  Public Member Functions inherited from Json_scalar | |
| uint32 | depth () const final | 
| Compute the depth of a document.  More... | |
| bool | is_scalar () const final | 
|  Public Member Functions inherited from Json_dom | |
| virtual | ~Json_dom ()=default | 
| void * | operator new (size_t size, const std::nothrow_t &) noexcept | 
| Allocate space on the heap for a Json_dom object.  More... | |
| void | operator delete (void *ptr) noexcept | 
| Deallocate the space used by a Json_dom object.  More... | |
| void | operator delete (void *ptr, const std::nothrow_t &) noexcept | 
| Nothrow delete.  More... | |
| Json_container * | parent () const | 
| Get the parent dom to which this dom is attached.  More... | |
| virtual enum_json_type | json_type () const =0 | 
| virtual bool | is_number () const | 
| virtual Json_dom_ptr | clone () const =0 | 
| Make a deep clone.  More... | |
| Json_path | get_location () const | 
| Get the path location of this dom, measured from the outermost document it nests inside.  More... | |
| bool | seek (const Json_seekable_path &path, size_t legs, Json_dom_vector *hits, bool auto_wrap, bool only_need_one) | 
| Finds all of the json sub-documents which match the path expression.  More... | |
| Static Public Attributes | |
| static const size_t | PACKED_SIZE = 8 | 
| Datetimes are packed in eight bytes.  More... | |
| Additional Inherited Members | |
|  Static Public Member Functions inherited from Json_dom | |
| static Json_dom_ptr | parse (const char *text, size_t length, const JsonParseErrorHandler &error_handler, const JsonErrorHandler &depth_handler) | 
| Parse Json text to DOM (using rapidjson).  More... | |
| static Json_dom_ptr | parse (const json_binary::Value &v) | 
| Construct a DOM object based on a binary JSON value.  More... | |
Represents a MySQL temporal value (DATE, TIME, DATETIME or TIMESTAMP) - an extension to the ECMA set of JSON scalar types, types J_DATE, J_TIME, J_DATETIME and J_TIMESTAMP respectively.
The method field_type identifies which of the four it is. Currently, this is an abstract class with two child classes: Json_datetime and Json_time.
| 
 | inline | 
| 
 | pure virtual | 
Implemented in Json_time, and Json_datetime.
| 
 | static | 
Datetimes are packed in eight bytes.