Navigation Menu

Skip to content

Commit

Permalink
doc en: add note about internal information of date value
Browse files Browse the repository at this point in the history
  • Loading branch information
kenhys committed Jun 26, 2013
1 parent 6ff59fe commit b359bc1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doc/source/tutorial/data.txt
Expand Up @@ -84,6 +84,11 @@ Date and time type

The date and time type of groonga is Time. Actually, a Time column stores a date and time as the number of microseconds since the Epoch, 1970-01-01 00:00:00. A Time value can represent a date and time before the Epoch because the actual data type is a signed integer. Note that :doc:`/reference/commands/load` and :doc:`/reference/commands/select` commands use a decimal number to represent a data and time in seconds. The default value is 0.0, which means the Epoch.

.. note::

Groonga internally holds the value of Epoch as pair of integer. The first integer represents the value of seconds, on the other hand, the second integer represents the value of micro seconds.
So, groonga shows the value of Epoch as floating point. Integral part means the value of seconds, fraction part means the value of micro seconds.

The following example creates a Time column and updates existing records. The first record has the default value because not updated.

.. groonga-command
Expand Down

0 comments on commit b359bc1

Please sign in to comment.