| Publicity: |
|---|
| [Public Only | All] |
template::data::transform::date (public)template::data::transform::date element_ref Collect a Date object from the form |
template::data::transform::textdate (public)template::data::transform::textdate element_ref Collect a textdate from the form, it automatically reformats it from the users locale to the iso standard YYYY-MM-DD this is useful because it doesn't need reformatting in tcl code |
template::data::validate::textdate (public)template::data::validate::textdate value_ref message_ref Validate that a submitted textdate if properly formatted. |
template::util::date (public)template::util::date command [ args... ] Dispatch procedure for the date object |
template::util::date::acquire (public)template::util::date::acquire type [ value ] Create a new date with some predefined value Basically, create and set the date |
template::util::date::add_time (public)template::util::date::add_time -time_array_name time_array_name \
-date_array_name date_array_name
set the time and date and new format properties into one date object (list) which is returned not sure this proc should live here... |
template::util::date::compare (public)template::util::date::compare date1 date2 Perform date comparison; same syntax as string compare |
template::util::date::create (public)template::util::date::create [ year ] [ month ] [ day ] [ hours ] \
[ minutes ] [ seconds ] [ format ]
Create a new Date object I chose to implement the date objects as lists instead of arrays, because arrays are not first-class in TCL |
template::util::date::daysInMonth (public)template::util::date::daysInMonth month [ year ]
|
template::util::date::defaultInterval (public)template::util::date::defaultInterval what Get the default ranges for all the numeric fields of a Date object |
template::util::date::from_ansi (public)template::util::date::from_ansi ansi_date [ format ] Create a new templating system date structure from a full ANSI date, i.e. in the format YYYY-MM-DD HH24:MI:SS. |
template::util::date::get_property (public)template::util::date::get_property what date Returns a property of a date list, usually created by ad_form. |
template::util::date::init (public)template::util::date::init Sets up some initial variables and other conditions to facilitate the data structure template::util::date working properly and completely. |
template::util::date::monthName (public)template::util::date::monthName month length Return the specified month name (short or long) |
template::util::date::now (public)template::util::date::now Create a new Date object for the current date and time |
template::util::date::now_min_interval (public)template::util::date::now_min_interval Create a new Date object for the current date and time with the default interval for minutes |
template::util::date::now_min_interval_plus_hour (public)template::util::date::now_min_interval_plus_hour Create a new Date object for the current date and time plus one hour with the default interval for minutes |
template::util::date::set_property (public)template::util::date::set_property what date value Replace a property in a list created by a date widget. |
template::util::date::today (public)template::util::date::today Create a new Date object for the current date |
template::util::date::unpack (public)template::util::date::unpack date Set the variables for each field of the date object in the calling frame. sets: year month day hours minutes seconds format from a list formatted date string |
template::util::date::validate (public)template::util::date::validate date error_ref Validate a date object. Return 1 if the object is valid, 0 otherwise. Set the error_ref variable to contain an error message, if any |
template::util::leadingPad (public)template::util::leadingPad string size Pad a string with leading zeroes |
template::util::leadingTrim (public)template::util::leadingTrim value Trim the leading zeroes from the value, but preserve the value as "0" if it is "00" |
template::util::negative (public)template::util::negative value Check if a value is less than zero, but return false if the value is an empty string |
template::util::textdate (public)template::util::textdate command [ args... ] Dispatch procedure for the textdate object |
template::util::textdate::create (public)template::util::textdate::create [ textdate ] Build a textdate datatype structure, which is just the string itself for this simple type. |
template::util::textdate_localized_format (public)template::util::textdate_localized_format Gets the localized format for the textdate widget |
template::widget::ampmFragment (public)template::widget::ampmFragment element_reference fragment size type \
value [ mode ] [ tag_attributes ]
Create a widget that shows the am/pm selection |
template::widget::date (public)template::widget::date element_reference tag_attributes Create a date entry widget according to a format string The format string should contain the following fields, separated by / \ - : . or whitespace: |
template::widget::dateFragment (public)template::widget::dateFragment element_reference fragment size type \
value [ mode ] [ tag_attributes ]
Create an input widget for the given date fragment If type is "t", uses a text widget for the fragment, with the given size. Otherwise, determines the proper widget based on the element flags, which may be text or a picklist |
template::widget::monthFragment (public)template::widget::monthFragment element_reference fragment size type \
value [ mode ] [ tag_attributes ]
Create a month entry widget with short or long month names |
template::widget::numericRange (public)template::widget::numericRange name interval_def size [ value ] \
[ tag_attributes ]
Create an html fragment to display a numeric range widget interval_def is in form { start stop interval } |
template::widget::numericrange (public)template::widget::numericrange element_reference tag_attributes Widget proc usable with ad_form, need to define interval_def as {interval_def {start end step}} |
template::widget::textdate (public)template::widget::textdate element_reference tag_attributes Implements the textdate widget. |