[Groonga-commit] groonga/groonga at b359bc1 [master] doc en: add note about internal information of date value

Back to archive index

HAYASHI Kentaro null+****@clear*****
Wed Jun 26 18:48:58 JST 2013


HAYASHI Kentaro	2013-06-26 18:48:58 +0900 (Wed, 26 Jun 2013)

  New Revision: b359bc1fce7c863503853f0279f393df4c1ab4ec
  https://github.com/groonga/groonga/commit/b359bc1fce7c863503853f0279f393df4c1ab4ec

  Message:
    doc en: add note about internal information of date value

  Modified files:
    doc/source/tutorial/data.txt

  Modified: doc/source/tutorial/data.txt (+5 -0)
===================================================================
--- doc/source/tutorial/data.txt    2013-06-26 18:46:44 +0900 (f95e73b)
+++ doc/source/tutorial/data.txt    2013-06-26 18:48:58 +0900 (e9f319c)
@@ -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
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index