| Function: age? | Top | Globals Index | Next |
|
syntax: age? <birth-date> <now-or-future-date> Calulates Age in Years, Months & Days. example: res: age? 28-apr-1949 now/date => context[Years: 60 Months: 5 Days: 19] |
| Function: date-string | Top | Globals Index | Back | Next |
|
syntax: date-string <string> Create date from 6-digit mysql timestamp. Note: string must be at least 6 bytes. refinement: /short 2-digit year |
| Function: date-to-sql | Top | Globals Index | Back | Next |
|
syntax: date-to-sql <string> Convert a mm/dd/yyyy or a rebol format to sql format. |
| Function: guess-date | Top | Globals Index | Back | Next |
|
syntax: guess-date <month-year-string> Description: Returns a valid rebol date type from a string configured as month-year. Must: have refinement one of: /begin /end refinement: /begin "day=1" /end day = last day of month example: guess-date/end "Dec-2009" => 31-Dec-2009 example: guess-date/begin "Dec-2009" => 1-Dec-2009 |
| Function: is-mmddyyyy? | Top | Globals Index | Back | Next |
|
syntax: is-mmddyyyy? <str-val> Description: Test for mm/dd/yyyy format Refinements: follow with: If error, Return error string rather than exception sql: Return an SQL date reb: "Return a rebol date" |
| Function: leapyear? | Top | Globals Index | Back | Next |
|
syntax: leapyear? <date-or-int> Determine if date falls within a leap year. |
| Function: list-months | Top | Globals Index | Back | Next |
|
syntax: list-months <int-month> <int-year> <int-period> Description: List month and years forward from year and month for period. example: list-months 5 2000 6 => {May-2000 Jun-2000 Jul-2000 Aug-2000 Sep-2000 Oct-2000 Nov-2000} |
| Function: present | Top | Globals Index | Back | Next |
|
syntax: present Expand the now functionality Note:: this function is worth examining, doesn't really do anything now. |
| Function: python-now | Top | Globals Index | Back | Next |
|
syntax: python-now Convert now to a format similar to that of python local_time() |
| Function: short-date | Top | Globals Index | Back | Next |
|
syntax: short-date Convert rebol date to string with 2-digit year. |
| Function: sql-to-mdy | Top | Globals Index | Back | Next |
|
syntax: sql-to-mdy <str-none> Convert SQL Date to mm-dd-yyyy format. example: sql-to-mdy "2209-11-10" => "11-10-2209" |
| Function: sql-today | Top | Globals Index | Back | Next |
|
syntax: sql-today returns current data as sql |
| Function: sqldate-to-common | Top | Globals Index | Back | Next |
|
syntax: sqldate-to-common <str-none> Convert SQL Date to common format. example: sqldate-to-common "2209-11-10" =>"Nov-10-2209" |
| Function: time-stamp | Top | Globals Index | Back | Next |
|
syntax: time-stamp <string> Create time/date from 10-digit mysql timestamp |
| Function: time-sum | Top | Globals Index | Back | Next |
|
syntax: time-sum <block-of-times> Sum beginning and ending times. |
| Function: timestamp2date | Top | Globals Index | Back | Next |
|
syntax: timestamp2date <string> convert 10-byte MySQL timestamp string to date |
| Function: tmult | Top | Globals Index | Back | Next |
|
syntax: tmult <time> <number> Multiply a decimal amount by a time and round. |
| Function: to-mmddyy | Top | Globals Index | Back | Next |
|
syntax: to-mmddyy Convert rebol date to mm/ddyy format. |
| Function: to-mmddyyyy | Top | Globals Index | Back | Next |
|
syntax: to-mmddyyyy <date-string> Convert rebol date to mm/dd/yyyy format. refinement: /brief mmddyy format returned |
| Function: to-sql | Top | Globals Index | Back | Next |
|
syntax: to-sql <date> Convert Rebol Date to SQL Date. |
| Function: to-sql-datetime | Top | Globals Index | Back | Next |
|
syntax: to-sql-datetime <date-string> Convert rebol date/time to sql datetime format. example: to-sql-datetime now => "2009-10-17 12:29:22" example: to-sql 1-Mar-2009/7:49:34 => "2009/7:49:34-3-1" |
| Function: weekday? | Top | Globals Index | Back |
|
syntax: weekday? <date> Returns day of week. |