dt_ansi_to_julian_single_arg (public)

 dt_ansi_to_julian_single_arg ansi [ era ]

Defined in packages/acs-datetime/tcl/acs-datetime-procs.tcl

Splits the ANSI date into year, month and day, and calls dt_ansi_to_julian to transform it to Julian.

Parameters:
ansi (required)
era (optional)
Returns:
the ANSI date as Julian
See Also:

Partial Call Graph (max 5 caller/called nodes):
%3 test_dt_ansi_to_julian_single_arg dt_ansi_to_julian_single_arg (test acs-datetime) dt_ansi_to_julian_single_arg dt_ansi_to_julian_single_arg test_dt_ansi_to_julian_single_arg->dt_ansi_to_julian_single_arg dt_ansi_to_julian dt_ansi_to_julian (public) dt_ansi_to_julian_single_arg->dt_ansi_to_julian dt_ansi_to_list dt_ansi_to_list (public) dt_ansi_to_julian_single_arg->dt_ansi_to_list util::trim_leading_zeros util::trim_leading_zeros (public) dt_ansi_to_julian_single_arg->util::trim_leading_zeros packages/calendar/www/view-month-display.tcl packages/calendar/ www/view-month-display.tcl packages/calendar/www/view-month-display.tcl->dt_ansi_to_julian_single_arg

Testcases:
dt_ansi_to_julian_single_arg
Source code:
    set date_list [dt_ansi_to_list $ansi]

    set year [util::trim_leading_zeros [lindex $date_list 0]]
    set month [util::trim_leading_zeros [lindex $date_list 1]]
    set day [util::trim_leading_zeros [lindex $date_list 2]]

    return [dt_ansi_to_julian $year $month $day $era]
XQL Not present:
PostgreSQL, Oracle
Generic XQL file:
packages/acs-datetime/tcl/acs-datetime-procs.xql

[ hide source ] | [ make this the default ]
Show another procedure: