dt_get_info (public)
dt_get_info [ -element element ] [ -dict ] [ the_date ]
Defined in packages/acs-datetime/tcl/acs-calendar-procs.tcl
Calculates various dates required by the dt_widget_month procedure. Defines, in the caller's environment, a whole set of variables needed for calendar display. Returns the following (example for the_date = 2000-12-08): julian_date_today 2451887 month December year 2000 first_julian_date 2451875 first_julian_date_of_month 2451880 num_days_in_month 31 last_julian_date_in_month 2451910 last_julian_date 2451916 first_day 26 first_day_of_month 6 last_day 31 next_month 2001-01-01 prev_month 2000-11-01 beginning_of_year 2000-01-01 days_in_last_month 30 next_month_name January prev_month_name November
- Switches:
- -element (optional)
- when set, the proc will return this date property only and will not set any variable in the caller scope. Trying to fetch a non-existing property will throw an error.
- -dict (optional, boolean)
- when set, the proc will return all properties as a dict and will not set any variable in the caller scope.
- Parameters:
- the_date (optional)
- ANSI formatted date string (yyyy-mm-dd). If not specified this procedure will default to today's date.
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- dt_get_info