From 0768368921410966177a7c9a6e225938624edb66 Mon Sep 17 00:00:00 2001 From: sumanth Date: Mon, 23 Apr 2012 11:53:58 +0530 Subject: [PATCH] [elm_datetime.h] Datetime default minimum year is changed to 1902 and documentation is updated. Change-Id: Id7a763ae7da09d9357e742e6805fb909e3e58d35 --- config/slp/base.src | 2 +- src/lib/elm_datetime.h | 18 ++++++++++++------ 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/config/slp/base.src b/config/slp/base.src index 8962151..acf0d69 100644 --- a/config/slp/base.src +++ b/config/slp/base.src @@ -59,7 +59,7 @@ group "Elm_Config" struct { value "week_start" int: 1; value "weekend_start" int: 6; value "weekend_len" int: 2; - value "year_min" int: 70; + value "year_min" int: 2; value "year_max" int: 137; group "color_palette" list { group "Elm_Custom_Palette" struct { diff --git a/src/lib/elm_datetime.h b/src/lib/elm_datetime.h index 36785cb..20274f9 100644 --- a/src/lib/elm_datetime.h +++ b/src/lib/elm_datetime.h @@ -380,7 +380,7 @@ EAPI void elm_datetime_format_set(Evas_Object *obj, const char *fmt); * @brief Get the upper boundary of a field. * * Year: years since 1900. Negative value represents year below 1900 (year - * value -30 represents 1870). Year default range is from 70 to 137. + * value -30 represents 1870). Year default range is from 2 to 137. * * Month: default value range is from 0 to 11. * @@ -403,7 +403,9 @@ EAPI Eina_Bool elm_datetime_value_max_get(const Evas_Object *obj, struct tm *max * @brief Set the upper boundary of a field. * * Year: years since 1900. Negative value represents year below 1900 (year - * value -30 represents 1870). Year default range is from 70 to 137. + * value -30 represents 1870). Year default range is from 2 to 137. + * To set a max value beyond this range, field limit of Year should be set + * accordingly by using elm_datetime_field_limit_set(). * * Month: default value range is from 0 to 11. * @@ -426,7 +428,7 @@ EAPI Eina_Bool elm_datetime_value_max_set(Evas_Object *obj, const struct tm *max * @brief Get the lower boundary of a field. * * Year: years since 1900. Negative value represents year below 1900 (year - * value -30 represents 1870). Year default range is from 70 to 137. + * value -30 represents 1870). Year default range is from 2 to 137. * * Month: default value range is from 0 to 11. * @@ -449,7 +451,9 @@ EAPI Eina_Bool elm_datetime_value_min_get(const Evas_Object *obj, struct tm *min * @brief Set the lower boundary of a field. * * Year: years since 1900. Negative value represents year below 1900 (year - * value -30 represents 1870). Year default range is from 70 to 137. + * value -30 represents 1870). Year default range is from 2 to 137. + * To set a min value beyond this range, field limit of Year should be set + * accordingly by using elm_datetime_field_limit_set(). * * Month: default value range is from 0 to 11. * @@ -512,7 +516,7 @@ EAPI void elm_datetime_field_limit_set(Evas_Object *obj, Elm_Datetime_Field * @brief Get the current value of a field. * * Year: years since 1900. Negative value represents year below 1900 (year - * value -30 represents 1870). Year default range is from 70 to 137. + * value -30 represents 1870). Year default range is from 2 to 137. * * Month: default value range is from 0 to 11. * @@ -535,7 +539,9 @@ EAPI Eina_Bool elm_datetime_value_get(const Evas_Object *obj, struct tm *currtim * @brief Set the current value of a Datetime object. * * Year: years since 1900. Negative value represents year below 1900 (year - * value -30 represents 1870). Year default range is from 70 to 137. + * value -30 represents 1870). Year default range is from 2 to 137. + * To set current value beyond this range, field limit of Year should be set + * accordingly by using elm_datetime_field_limit_set(). * * Month: default value range is from 0 to 11. * -- 2.7.4