Index: openacs-4/packages/acs-core-docs/www/variables.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/variables.html,v diff -u -r1.33 -r1.34 --- openacs-4/packages/acs-core-docs/www/variables.html 25 Apr 2018 08:38:28 -0000 1.33 +++ openacs-4/packages/acs-core-docs/www/variables.html 3 Sep 2024 15:37:32 -0000 1.34 @@ -1,30 +1,15 @@ -
($Id$)
- - -</authorblurb> - -Starting with OpenACS 5.0 and the introduction of acs-lang, +
Starting with OpenACS 5.0 and the introduction of acs-lang, we recommend retrieving date/time information from the database in - ANSI format and then using lc_time_fmt to format it for display.
-Example 12.1. Getting datetime from the database ANSI-style
db_multirow -extend { mydate_pretty } { + ANSI format and then using lc_time_fmt to format it for display.Example 12.1. Getting datetime from the database ANSI-style
db_multirow -extend { mydate_pretty } { select to_char(mydate, 'YYYY-MM-DD HH24:MI:SS') as mydate_ansi, ... ... } { set mydate_ansi [lc_time_system_to_conn $mydate_ansi] set mydate_pretty [lc_time_fmt $mydate_ansi "%x %X"] } --
- -