calendar::item::all_day_event (private)
calendar::item::all_day_event start_date_ansi end_date_ansi
Defined in packages/calendar/tcl/cal-item-procs.tcl
Determine, if an event is an all day event depending on the ansi start and end dates (e.g. "2018-03-22 00:00:00" and "2018-03-23 00:00:00"). The event is a full_day event, when both start_date and end_date do not specify a time, which in the datamodel means both dates are set at midnight.
- Parameters:
- start_date_ansi (required)
- end_date_ansi (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: # This previous definition would match any start and end date that # were equal (e.g. '2019-02-16 18:00:03' and '2019-02-16 # 18:00:03'), and also any event with some time specified as long # as the date component was different (e.g. '2019-01-01 14:34:02' # and '2019-02-16 18:00:03'). When such specific time intervals # are given it is hard to argue this would be just an all day # event. # return [expr {$start_date_ansi eq $end_date_ansi # || [lindex $start_date_ansi 0] ne [lindex $end_date_ansi 0]}] return [expr {[lindex $start_date_ansi 1] eq "00:00:00" && [lindex $end_date_ansi 1] eq "00:00:00"}]Generic XQL file: packages/calendar/tcl/cal-item-procs.xql
PostgreSQL XQL file: packages/calendar/tcl/cal-item-procs-postgresql.xql
Oracle XQL file: packages/calendar/tcl/cal-item-procs-oracle.xql