~ubuntu-branches/ubuntu/wily/sqlite3/wily

« back to all changes in this revision

Viewing changes to www/lang_datefunc.html

  • Committer: Bazaar Package Importer
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2010-02-02 18:44:27 UTC
  • mfrom: (9.1.8 sid)
  • Revision ID: james.westby@ubuntu.com-20100202184427-ti0xppn5lywwzb8h
Tags: 3.6.22-1
New upstream release (closes: #568061).

Show diffs side-by-side

added added

removed removed

Lines of Context:
104
104
</ol>
105
105
 
106
106
<p>
107
 
All five functions take a time string as an argument. The time string
108
 
is followed by zero or more modifiers. 
 
107
All five date and time functions take a time string as an argument. 
 
108
The time string is followed by zero or more modifiers. 
109
109
The strftime() function also takes a format string as its first argument.
110
110
</p>
111
111
 
119
119
The julianday() function returns the 
120
120
<a href="http://en.wikipedia.org/wiki/Julian_day">Julian day</a> - the
121
121
number of days since noon in Greenwich on November 24, 4714 B.C. 
122
 
(<a href="http://en.wikipedia.org/wiki/Proleptic_Gregorian_calendar">Proleptic Gregorian calendar</a>). 
 
122
(<a href="http://en.wikipedia.org/wiki/Proleptic_Gregorian_calendar">Proleptic Gregorian calendar</a>).
123
123
The strftime() routine returns the date formatted according to 
124
124
the format string specified as the first argument.
125
125
The format string supports the most common substitutions found in the 
204
204
<h3>Modifiers</h3>
205
205
 
206
206
<p>The time string can be followed by zero or more modifiers that 
207
 
alter the date and time string.  Each modifier
208
 
is a transformation that is applied to the time string to its left.
 
207
alter the date and time string. Each modifier
 
208
is a transformation that is applied to the time value to its left.
209
209
Modifiers are applied from left to right; order is important.
210
210
The available modifiers are as follows.</p>
211
211
 
226
226
</ol>
227
227
 
228
228
<p>The first six modifiers (1 through 6) 
229
 
simply add the specified amount of time to the date 
230
 
specified by the preceding timestring.
 
229
simply add the specified amount of time to the date and time 
 
230
specified by the preceding timestring and modifiers.
231
231
Note that "&plusmn;NNN months" works by rendering the original date into
232
232
the YYYY-MM-DD format, adding the &plusmn;NNN to the MM month value, then
233
233
normalizing the result.  Thus, for example, the data 2001-03-31 modified