|
Date |
Overview
Date class is for an epoch of time, which is the forth dimension in spatial data. Two handy class functions of a date object are "jd" and "dow", which are used to calculate a Julian Date and the day-of-week.
Member data
| Name | data type | Meaning |
| year | int | year number |
| month | int | month number |
| day | int | day number |
| time | double | time |
Operator
no operator provided.
Construction function
{Date} ret = DATE([{int} argm1, {int} argm2, {int} argm3, {double} argm4])
argm1 = year number (default = 1960)
argm2 = month number (default = 12)
argm3 = day number (default = 9)
argm4 = time (default = 0.000)
Example:
| ->epoch_1 = Date(2001,12,15,deg(13.302516)) |
an epoch at 13 hr 30 min 25.16 sec on Dec 15, 2001 |
Lfunction
object.YEAR() = {int} left-value
object.MONTH() = {int} left-value
object.DAY() = {int} left-value
object.TIME() = {double} left-value
Example:
| ->S.time() = deg(1.301256) |
Class function
| DAY | DOW | INIT | JD | MONTH |
| TIME | YEAR |