dt_ansi_to_pretty (public)

 dt_ansi_to_pretty [ ansi_date ]

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

Converts an ANSI date into a localzed one. With no argument, it returns the current date based on server time. Works for both date and date-time strings.

Parameters:
ansi_date (optional)
Date in ANSI format (for example, 1998-09-05)
Returns:
Localized date (for example, on 'en_US', 05/09/98)

Partial Call Graph (max 5 caller/called nodes):
%3 test_dt_localized_procs dt_localized_procs (test acs-datetime) dt_ansi_to_pretty dt_ansi_to_pretty test_dt_localized_procs->dt_ansi_to_pretty dt_sysdate dt_sysdate (public) dt_ansi_to_pretty->dt_sysdate lc_time_fmt lc_time_fmt (public) dt_ansi_to_pretty->lc_time_fmt dt_widget_calendar_navigation dt_widget_calendar_navigation (public, deprecated) dt_widget_calendar_navigation->dt_ansi_to_pretty

Testcases:
dt_localized_procs
Source code:
    if {$ansi_date eq ""} {
        set ansi_date [dt_sysdate]
    }

    return [lc_time_fmt $ansi_date "%x"]
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: