caldav::calendars proc set_date_time (protected)
caldav::calendarsset_date_time date time utc tz
Defined in packages/xotcl-core/tcl/01-debug-procs.tcl
Format a date-time value based on the provided date and time components, optionally in utc. This function is just used be the ical parser. GN TODO: TZ is currently ignored, we assume, if not UTC, then use localtime of the host.
- Parameters:
- date (required)
- time (required)
- utc (required, boolean)
- tz (required)
- Testcases:
- No testcase defined.
Source code: # # Format a date-time value based on the provided date and time # components, optionally in utc. This function is just used be # the ical parser. # # GN TODO: TZ is currently ignored, we assume, if not UTC, then # use localtime of the host. # set clock [::xo::ical date_time_to_clock $date $time $utc] #:debug "set_date_time parses $date $time $utc ($tz)-> [::xo::ical clock_to_oacstime $clock]" return [::xo::ical clock_to_oacstime $clock]XQL Not present: Generic, PostgreSQL, Oracle