File 'base/date.tcl' (part of 'Pool_Base')
Home | Packages | Files | Procedures | Classes | Namespaces | Keywords | External packages
::pool::date::2month (date)
|
|
Argument: date
|
The date to look at.
|
Returns: A month in the form mm/yyyy.
|
::pool::date::StripLeadingZeros (x)
|
|
Notes: This implementation is significantly faster than 'regsub {^0*((1-90-9*)|0)$} $x {\1} x'. The regsub averages 160 microsecs in all cases. This realization however requires only ~142 microsecs in the worst case and goes down to ~128 or ~85 microsecs (0-series, {}).
Note, '0 != string compare "" $x' is definitely faster than '$x != {}'. The same holds for the second comparison.
All timings done using tcl 8.0
|
Argument: x
|
Number forced into decimal interpretation
|
Returns: a decimal number
|
::pool::date::eq (a b)
|
|
Argument: a
|
first date to compare
|
Argument: b
|
second date to compare
|
Returns: 1, if answer is yes, 0 else.
|
::pool::date::ge (a b)
|
|
Argument: a
|
first date to compare
|
Argument: b
|
second date to compare
|
Returns: 1, if answer is yes, 0 else.
|
::pool::date::gt (a b)
|
|
Argument: a
|
first date to compare
|
Argument: b
|
second date to compare
|
Returns: 1, if answer is yes, 0 else.
|
::pool::date::index (date)
|
|
Argument: date
|
The date to convert.
|
Returns: Index of date into its year.
|
::pool::date::intervalIsMonth (a b)
|
|
Argument: a
|
Start of interval, inclusive
|
Argument: b
|
End of interval, inclusive
|
Returns: 1, if answer is yes, 0 else.
|
::pool::date::intervalIsYear (a b)
|
|
Argument: a
|
Start of interval, inclusive
|
Argument: b
|
End of interval, inclusive
|
Returns: 1, if answer is yes, 0 else.
|
::pool::date::isYearStart (date)
|
|
Argument: date
|
The date to look at.
|
Returns: 1, if answer is yes, 0 else.
|
::pool::date::join (y m d)
|
|
Argument: y
|
The year to use in the composed date
|
Argument: m
|
The month to use in the composed date
|
Argument: d
|
The day to use in the composed date
|
Returns: A date in the form mm/dd/yyyy
|
::pool::date::joinMonth (y m)
|
|
Argument: y
|
The year to use in the composed date
|
Argument: m
|
The month to use in the composed date
|
Returns: A month in the form mm/yyyy
|
::pool::date::joinMonthDay (month day)
|
|
Argument: month
|
The month (mm/yyyy) to use in the composition
|
Argument: day
|
The day to use in the composition
|
Returns: A date in the form mm/dd/yyyy
|
::pool::date::le (a b)
|
|
Argument: a
|
first date to compare
|
Argument: b
|
second date to compare
|
Returns: 1, if answer is yes, 0 else.
|
::pool::date::leMonth (a b)
|
|
Argument: a
|
first month to compare
|
Argument: b
|
second month to compare
|
Returns: 1, if answer is yes, 0 else.
|
::pool::date::leapYear (y)
|
|
Argument: y
|
The year to check
|
Returns: 1 for a leap year, 0 else.
|
::pool::date::lt (a b)
|
|
Argument: a
|
first date to compare
|
Argument: b
|
second date to compare
|
Returns: 1, if answer is yes, 0 else.
|
::pool::date::monthFirstDay (month)
|
Argument: month
|
month to look at.
|
Returns: The date for the first day of the given month.
|
::pool::date::monthLastDay (month)
|
Argument: month
|
month to look at.
|
Returns: The date for the last day of the given month.
|
::pool::date::monthLength (month)
|
|
Argument: month
|
The month whose length shall be determined.
|
Returns: The length of month, in days.
|
::pool::date::monthName (m)
|
|
Argument: m
|
The index to convert (range 01..12)
|
Returns: The english name of the month m
|
::pool::date::monthNumber (monthname)
|
|
Argument: monthname
|
The name to convert into an number.
|
Returns: The month number associated to the name.
|
::pool::date::ne (a b)
|
|
Argument: a
|
first date to compare
|
Argument: b
|
second date to compare
|
Returns: 1, if answer is yes, 0 else.
|
::pool::date::next (date)
|
|
Dangers: A hack is used to get Normal/DST switches (+26 hours instead auf +24). A gregorian calendar is assumed. Entirely missing days are not handled.
|
Argument: date
|
The date to look at.
|
Returns: The day after date.
|
::pool::date::nextMonth (month)
|
|
Argument: month
|
The month to look at.
|
Returns: The month after month.
|
::pool::date::now ()
|
|
Returns: The current date in the form mm/dd/yyyy
|
::pool::date::nowTime ()
|
|
Returns: The current date and time.
|
::pool::date::prev (date)
|
|
Dangers: A hack is used to get Normal/DST switches (-22 hours instead of -24). A gregorian calendar is assumed. Entirely missing days are not handled.
|
Argument: date
|
The date to look at.
|
Returns: The day before date.
|
::pool::date::prevMonth (month)
|
|
Argument: month
|
The month to look at.
|
Returns: The month before month.
|
::pool::date::printCalendar (month year chan)
|
by Ric Klaren <
|
|
Argument: month
|
Month of the year to print the calendar for.
|
Argument: year
|
Year to print the calendar for.
|
Argument: chan (= stdout)
|
The channel to print the calendar to.
|
::pool::date::split (date y m d)
|
|
Argument: date
|
The date to decompose
|
Argument: y
|
Name of the variable to store the year into.
|
Argument: m
|
Name of the variable to store the month into.
|
Argument: d
|
Name of the variable to store the day into.
|
::pool::date::splitMonth (month y m)
|
|
Argument: month
|
The month to decompose.
|
Argument: y
|
Name of the variable to store the year into.
|
Argument: m
|
Name of the variable to store the month into.
|
::pool::date::weekday (date)
|
|
Argument: date
|
The date to calculate the day index from.
|
::pool::date::weekdayName (weekday)
|
|
Argument: weekday
|
The index to convert.
|
::pool::date::yearLength (year)
|
|
Argument: year
|
Year whose length shall be determined
|
Returns: The length of year, in days.
|
Home | Packages | Files | Procedures | Classes | Namespaces | Keywords | External packages
Generated by AutoDoc 2.4 at 09/14/2000, invoked by Andreas Kupries