• Publicity: Public Only All

calendar-outlook-procs.tcl

Utility functions for syncing Calendar with Outlook taken from SloanSpace v1, hacked for OpenACS by Ben.

Location:
packages/calendar/tcl/calendar-outlook-procs.tcl
Authors:
wtem@olywa.net
ben@openforce.biz

Procedures in this file

Detailed information

calendar::outlook::cal_outlook_gmt_sql (public, deprecated)

 calendar::outlook::cal_outlook_gmt_sql [ hours ] [ dash ]
Deprecated. Invoking this procedure generates a warning.

Formats the hours to subtract or add to make the date_time be in gmt. DEPRECATED: upstream code stopped using this api in date 2002-07-10.

Parameters:
hours (defaults to "0")
dash (optional)
See Also:
  • nothing

Partial Call Graph (max 5 caller/called nodes):
%3 ad_log_deprecated ad_log_deprecated (public) calendar::outlook::cal_outlook_gmt_sql calendar::outlook::cal_outlook_gmt_sql calendar::outlook::cal_outlook_gmt_sql->ad_log_deprecated

Testcases:
No testcase defined.

calendar::outlook::format_item (public)

 calendar::outlook::format_item -cal_item_id cal_item_id \
    [ -all_occurrences_p all_occurrences_p ] \
    [ -client_timezone client_timezone ]

the cal_item_id is obvious. If we want all occurrences, we set all_occurrences_p to true. The client timezone helps to make things right. It is the number offset from GMT.

Switches:
-cal_item_id
(required)
-all_occurrences_p
(defaults to "0") (optional)
-client_timezone
(defaults to "0") (optional)

Partial Call Graph (max 5 caller/called nodes):
%3 test_cal_item_add_delete cal_item_add_delete (test calendar) calendar::outlook::format_item calendar::outlook::format_item test_cal_item_add_delete->calendar::outlook::format_item calendar::item::get calendar::item::get (public) calendar::outlook::format_item->calendar::item::get calendar::outlook::ics_timestamp_format calendar::outlook::ics_timestamp_format (public) calendar::outlook::format_item->calendar::outlook::ics_timestamp_format db_1row db_1row (public) calendar::outlook::format_item->db_1row

Testcases:
cal_item_add_delete

calendar::outlook::ics_timestamp_format (public)

 calendar::outlook::ics_timestamp_format -timestamp timestamp

the timestamp must be in the format YYYY-MM-DD HH24:MI:SS

Switches:
-timestamp
(required)

Partial Call Graph (max 5 caller/called nodes):
%3 test_cal_item_add_delete cal_item_add_delete (test calendar) calendar::outlook::ics_timestamp_format calendar::outlook::ics_timestamp_format test_cal_item_add_delete->calendar::outlook::ics_timestamp_format calendar::outlook::format_item calendar::outlook::format_item (public) calendar::outlook::format_item->calendar::outlook::ics_timestamp_format

Testcases:
cal_item_add_delete
[ show source ]