Index: openacs-4/packages/acs-core-docs/www/variables.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/variables.adp,v diff -u -r1.1.2.2 -r1.1.2.3 --- openacs-4/packages/acs-core-docs/www/variables.adp 23 Sep 2015 18:37:48 -0000 1.1.2.2 +++ openacs-4/packages/acs-core-docs/www/variables.adp 28 Sep 2015 07:54:30 -0000 1.1.2.3 @@ -12,14 +12,14 @@ Variables

Date and Time Variables

-
($Id: variables.html,v 1.30.2.1 2015/09/23 -11:55:06 gustafn Exp $)

By joel\@aufrecht.org +

($‌Id: variables.xml,v 1.3 2006/07/17 05:38:37 +torbenb Exp $)

By joel\@aufrecht.org

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

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 +

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,