9.2.3. dtype

Last page update: November 23, 2011

We list here all the datatypes (dtypes) you can use for your data. You can also create your own custom type.

9.2.3.1. dtypes format

9.2.3.1.1. A dtype

TODO

9.2.3.1.2. C dtype

Character type.

9.2.3.1.3. D dtype

Date type. Use the datetime.date() Python module syntax

Example:

datetime.date(2011, 10, 10)

9.2.3.1.4. DH dtype

DateHour type. Use the datetime.datetime.now() Python module syntax

9.2.3.1.5. H dtype

Hour type. Use the datetime.time() Python module syntax

Example:

datetime.time(4, 5)

9.2.3.1.6. I dtype

Integer type.

Example:

1223

9.2.3.1.7. L dtype

Long integer type

Example:

48205294

9.2.3.1.8. R dtype

Float number type.

Example:

34567.67

9.2.3.1.9. T dtype

Text type.

9.2.3.1.10. X dtype

XML or Bag type.

9.2.3.1.11. DT dtype

The DT type is a Genro type. Its format is:

yyyy-mm-dd T hh:mm:ss.decimals

where yyyy-mm-dd is the “year-month-day” format date, T is a separator, hh:mm:ss is the “hour-minute-second” format hour (followed by the decimals of seconds)

9.2.3.2. custom type

You can build your own datatype. For more information, check the custom_type() method