summaryrefslogtreecommitdiffstats
path: root/generic/tclDate.h
diff options
context:
space:
mode:
authorsebres <sebres@users.sourceforge.net>2018-05-29 17:24:24 (GMT)
committersebres <sebres@users.sourceforge.net>2018-05-29 17:24:24 (GMT)
commit5fb141ae400f2f8f90720edec774f8f7dd9cfbea (patch)
tree90d6c2d34ca7eda8325139460929a493dc7b0b18 /generic/tclDate.h
parentda19723bdc4dadba4289f4f357a0891f0950be48 (diff)
downloadtcl-5fb141ae400f2f8f90720edec774f8f7dd9cfbea.zip
tcl-5fb141ae400f2f8f90720edec774f8f7dd9cfbea.tar.gz
tcl-5fb141ae400f2f8f90720edec774f8f7dd9cfbea.tar.bz2
validation rules ready for scan/freescan; test cases extended; code review and clean-up;
running of test cases with and without validate.
Diffstat (limited to 'generic/tclDate.h')
-rw-r--r--generic/tclDate.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/generic/tclDate.h b/generic/tclDate.h
index a88639d..fd85611 100644
--- a/generic/tclDate.h
+++ b/generic/tclDate.h
@@ -42,6 +42,7 @@
#define CLF_DAYOFYEAR (1 << 8)
#define CLF_MONTH (1 << 9)
#define CLF_YEAR (1 << 10)
+#define CLF_DAYOFWEEK (1 << 11)
#define CLF_ISO8601YEAR (1 << 12)
#define CLF_ISO8601 (1 << 13)
#define CLF_ISO8601CENTURY (1 << 14)
@@ -155,7 +156,8 @@ typedef struct TclDateFields {
int iso8601Week; /* ISO8601 week number */
int dayOfWeek; /* Day of the week */
int hour; /* Hours of day (in-between time only calculation) */
- int minutes; /* Minutes of day (in-between time only calculation) */
+ int minutes; /* Minutes of hour (in-between time only calculation) */
+ int secondOfMin; /* Seconds of minute (in-between time only calculation) */
int secondOfDay; /* Seconds of day (in-between time only calculation) */
/* Non cacheable fields: */
@@ -199,7 +201,6 @@ typedef struct DateInfo {
int dateHaveOrdinalMonth;
int dateDayOrdinal;
- int dateDayNumber;
int dateHaveDay;
int *dateRelPointer;
@@ -221,11 +222,12 @@ typedef struct DateInfo {
#define yyHour (info->date.hour)
#define yyMinutes (info->date.minutes)
-#define yySeconds (info->date.secondOfDay)
+#define yySeconds (info->date.secondOfMin)
+#define yySecondOfDay (info->date.secondOfDay)
#define yyDSTmode (info->dateDSTmode)
#define yyDayOrdinal (info->dateDayOrdinal)
-#define yyDayNumber (info->dateDayNumber)
+#define yyDayOfWeek (info->date.dayOfWeek)
#define yyMonthOrdinalIncr (info->dateMonthOrdinalIncr)
#define yyMonthOrdinal (info->dateMonthOrdinal)
#define yyHaveDate (info->dateHaveDate)
@@ -289,6 +291,8 @@ typedef struct ClockClientData {
size_t lastTZEpoch;
int currentYearCentury;
int yearOfCenturySwitch;
+ int validMinYear;
+ int validMaxYear;
Tcl_Obj *systemTimeZone;
Tcl_Obj *systemSetupTZData;
Tcl_Obj *gmtSetupTimeZoneUnnorm;