summaryrefslogtreecommitdiffstats
path: root/generic/tclDate.h
diff options
context:
space:
mode:
authorsebres <sebres@users.sourceforge.net>2017-01-10 22:43:22 (GMT)
committersebres <sebres@users.sourceforge.net>2017-01-10 22:43:22 (GMT)
commit5d100ec32832dcd2eb49c5e734a2664e1f240c41 (patch)
tree7c264cc3aa25437a00d1ca453c04d64d3e86bc5d /generic/tclDate.h
parent76ac8beb0003c05405e55f5abbe17040ff32b2f1 (diff)
downloadtcl-5d100ec32832dcd2eb49c5e734a2664e1f240c41.zip
tcl-5d100ec32832dcd2eb49c5e734a2664e1f240c41.tar.gz
tcl-5d100ec32832dcd2eb49c5e734a2664e1f240c41.tar.bz2
porting of clock format completed; all clock test cases passed
Diffstat (limited to 'generic/tclDate.h')
-rw-r--r--generic/tclDate.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/generic/tclDate.h b/generic/tclDate.h
index c5d7da5..7c68b2a 100644
--- a/generic/tclDate.h
+++ b/generic/tclDate.h
@@ -109,6 +109,7 @@ typedef enum ClockMsgCtLiteral {
MCLIT_MONTHS_FULL, MCLIT_MONTHS_ABBREV, MCLIT_MONTHS_COMB,
MCLIT_DAYS_OF_WEEK_FULL, MCLIT_DAYS_OF_WEEK_ABBREV, MCLIT_DAYS_OF_WEEK_COMB,
MCLIT_AM, MCLIT_PM,
+ MCLIT_LOCALE_ERAS,
MCLIT_BCE, MCLIT_CE,
MCLIT_BCE2, MCLIT_CE2,
MCLIT_BCE3, MCLIT_CE3,
@@ -121,6 +122,7 @@ typedef enum ClockMsgCtLiteral {
pref "MONTHS_FULL", pref "MONTHS_ABBREV", pref "MONTHS_COMB", \
pref "DAYS_OF_WEEK_FULL", pref "DAYS_OF_WEEK_ABBREV", pref "DAYS_OF_WEEK_COMB", \
pref "AM", pref "PM", \
+ pref "LOCALE_ERAS", \
pref "BCE", pref "CE", \
pref "b.c.e.", pref "c.e.", \
pref "b.c.", pref "a.d.", \
@@ -387,6 +389,8 @@ typedef struct DateFormat {
char *output;
TclDateFields date;
+
+ Tcl_Obj *localeEra;
} DateFormat;
#define CLFMT_INCR (1 << 3)
@@ -445,6 +449,11 @@ typedef struct ClockFmtScnStorage {
MODULE_SCOPE time_t ToSeconds(time_t Hours, time_t Minutes,
time_t Seconds, MERIDIAN Meridian);
MODULE_SCOPE int IsGregorianLeapYear(TclDateFields *);
+MODULE_SCOPE int ConvertUTCToLocal(ClientData clientData, Tcl_Interp *,
+ TclDateFields *, Tcl_Obj *timezoneObj, int);
+MODULE_SCOPE Tcl_Obj *
+ LookupLastTransition(Tcl_Interp *, Tcl_WideInt,
+ int, Tcl_Obj *const *, Tcl_WideInt rangesVal[2]);
MODULE_SCOPE int TclClockFreeScan(Tcl_Interp *interp, DateInfo *info);