Index: openacs-4/packages/acs-datetime/www/doc/design.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-datetime/www/doc/design.adp,v
diff -u -r1.2 -r1.3
--- openacs-4/packages/acs-datetime/www/doc/design.adp 27 Oct 2014 16:39:32 -0000 1.2
+++ openacs-4/packages/acs-datetime/www/doc/design.adp 7 Aug 2017 23:47:55 -0000 1.3
@@ -1,29 +1,45 @@
- This document describes the design of the ACS DateTime service
-package. The ACS DateTime service is a collection of HTML widget
+ This document describes the design of the ACS DateTime service
+package. The ACS DateTime service is a collection of HTML widget
generation procedures and date/time processing functions. The
latter are built largely on top of the Tcl Most the procedures defined within the ACS DateTime service take
+conversions. Most the procedures defined within the ACS DateTime service take
date/time information as input and return date/time strings to the
caller. Rather than standardize on a low-level representation of
time (like seconds since 00:00:00 UTC, January 1 1970) all of these
procedures accept general date specfications. For example, the
default date for This package was written largely to consolidate and improve the
-date, time, and calendar functionality existing in ACS 3. None. The ACS DateTime package does not have a data model. None. See examples.ACS DateTime
+
by Ron Henderson
-I. Essentials
II. Introduction
I. Essentials
+II. Introduction
+clock
routines, although there are a small number of procedures that
connect to the database for services like Julian date
-conversions.dt_widget_datetime
can be specified
-as "2001-01-05", "2000-01-05 09:57 pm", "2000-01-05 21:57", etc.
-Internally these are parsed by the standard Tcl procedure
-clock scan
for processing and then converted back to a
-formatted string for output. This makes it easy to pass dates
-between the Tcl layer and the database.III. Historical Considerations
IV. Competitive Analysis
VI. Data Model Discussion
VII. Legal Transactions
VIII. API
Date and Time functions
+as "2001-01-05", "2000-01-05 09:57 pm",
+"2000-01-05 21:57", etc. Internally these are parsed by
+the standard Tcl procedure
clock scan
for processing
+and then converted back to a formatted string for output. This
+makes it easy to pass dates between the Tcl layer and the
+database.
This package was written largely to consolidate and improve the +date, time, and calendar functionality existing in ACS 3.
+None.
+The ACS DateTime package does not have a data model.
+None.
+See examples.
+dt_systime
generates current system time (local or
GMT)dt_julian_to_ansi
converts Julian time to ANSI
time (yyyy-mm-dd)dt_ansi_to_pretty
converts ANSI time to "pretty
-ANSI time" (yyyy-mm-dd to Month day, year)dt_ansi_to_pretty
converts ANSI time to
+"pretty ANSI time" (yyyy-mm-dd to Month day, year)dt_ansi_to_list
generates a Tcl list of date-time
elements (year, month, day, hour, minute, second)dt_valid_time_p
checks the validity of a time
specificationdt_interval_check
checks the validity of a time
interval by comparing start and end times and determining if they
represent a positive, empty, or negative time rangeSee examples.
See examples.
+dt_widget_datetime
generate HTML select widgets of
varying granularity for collecting date and time information from
@@ -54,9 +73,13 @@
for months of the yeardt_widget_numeric_range
generates an HTML select
widget for general numeric rangesSee examples.
Each of the following allow the programmer to supply calendar + +
See examples.
+Each of the following allow the programmer to supply calendar
details in an ns_set
keyed on Julian date and returns
-an HTML table.
dt_widget_month
generates a basic monthly
calendardt_widget_calendar_navigation
generates a calendar
navigation widget with viewing options for day, week, month and
yearMany of the calendar widgets generate extensive HTML from within +
Many of the calendar widgets generate extensive HTML from within Tcl procedures. This will eventually be converted to a template-based system so that the display properties are more -easily customized.
Implemented by Ron Henderson (ron@arsdigita.com), based on the -previous work of gregh@arsdigita.com and smeeks@arsdigita.com.
Implemented by Ron Henderson (ron\@arsdigita.com), based on the +previous work of gregh\@arsdigita.com and smeeks\@arsdigita.com.
+