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.1.2.5 -r1.1.2.6 --- openacs-4/packages/acs-core-docs/www/variables.html 18 Dec 2003 10:04:27 -0000 1.1.2.5 +++ openacs-4/packages/acs-core-docs/www/variables.html 11 Jan 2004 12:45:48 -0000 1.1.2.6 @@ -1,9 +1,9 @@ -Variables

Variables

By joel@aufrecht.org

+Variables

Variables

By joel@aufrecht.org


OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff. -

Date and Time Variables

Starting with OpenACS 5.0 and the introduction of acs-lang, +

Date and Time Variables

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�9.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�9.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,
           ...
     ...