You are here

constant PD2_YEAR_MIN in Partial Date 7

The minimum year that the module supports.

Modifying this will alter how new timestamps are stored in the database.

Setting to the something huge like 999999999999 should be OK, which would be needed for things like the scienific age of the universe. +/- 2000 years do not calculate leap years etc, and use a fixed number of seconds per year based on the length of the tropical year in 2000.

2 uses of PD2_YEAR_MIN
partial_date_field_populate_components in ./partial_date.admin.inc
This generates the best estimate for the date components based on the submitted values.
partial_date_field_validate_year in ./partial_date.admin.inc
Helper for hook_field_validate() to test that the year in within range.

File

./partial_date.module, line 977
Defines a date element that allows for any combination of date granularity settings.

Code

define('PD2_YEAR_MIN', -999999999999);