Skip to content
Sections
>> Trisquel >> 套件 >> etiona >> perl >> libpgobject-type-datetime-perl
etiona  ] [  nabia  ] [  aramo  ]
[ 原始碼: libpgobject-type-datetime-perl  ]

套件: libpgobject-type-datetime-perl (2.000001-1)

DateTime Wrappers for PGObject

PGObject::Type::DateTime provides a basic wrapper around DateTime to allow PGObject-framework types to automatically tie date/time related objects, but date and timestamp formats are handled in the 'from_db' routines.

This specific module only supports the ISO YMD datestyle. The MDY or DMY datestyles may be usable in future versions but datestyles other than ISO raise ambiguity issues, sufficient that they cannot always even be used in PostgreSQL as input.

This module also provides basic default handling. Times are assigned a date of '0001-01-01' and dates are assigned a time of midnight. Whether this is set is persisted, along with whether timezones are set, and these are returned to a valid ISO YMD format on export, if a date component was initially set.

This means you can use this for general math without worrying about many of the other nicities. Parsing ISO YMD dates and standard times (24 hr format) is supported via the from_db interface, which also provides a useful way of handing dates in.

其他與 libpgobject-type-datetime-perl 有關的套件

  • 依賴
  • 推薦
  • 建議

下載 libpgobject-type-datetime-perl

下載可用於所有硬體架構的
硬體架構 套件大小 安裝後大小 檔案
all 9.3 kB27 kB [文件列表]