date

 

 

Overview

The date function converts a single argument {obj} to a Date. Alternatively, the date function will convert year, month, and day into an Analytic Information Server Date constant. The date must be in the range 1015BC to 1015AD.

Usage

The date function is used to coerce an object to a Date object. The Date object is represented as a julian number. To express the date as an ASCII date constant in the : #Month,Day,Year, the string function can be used.

 

Syntax


Expression:

(date obj)

(date year month day )


Arguments Name Type Description
Argument:objString Number An object to be coerced into a Date.
Argument:year Number #{__content: "A year in the range 10" superscript: "15" __content: "BC to 10" superscript: "15" __content: "AD. Years before Christ must be entered as negative numbers."}
Argument:month Number A number representing the month of the year. If the number of months is greater than 12, Analytic Information Server advances the excess months to the following year.
Argument:day Number A number representing the day of the month. If the day value is greater than the number of days in the month you specify, Analytic Information Server advances the extra days to the following month.

Returns:

A Date representation of the argument



 

Examples

Here are a number of links to Lambda coding examples which contain this instruction in various use cases.

 

Argument Types

Here are the links to the data types of the function arguments.

Date String Number

Here are also a number of links to functions having arguments with any of these data types.

++ += + /=
/ *= * --
-= - abs acos
add1 addMethod addi appendWriteln
append argument arithmetic asin
atan avg balance binaryInsert
binarySearch boolean character clean
closeLog code compareEQ compareGE
compareGT compareLE compareLT compareNE
compare comparison compress cons
cos cosh count date
day days360 debugBrowsableProcs debugDetective
debugEval decode deg dimension
disassemble display divi downcase
encode evalInSyncLocalContext eval exp
exportCsv exportSbf exportTab expt
fact fileDir fileEraseDir fileExists
fileMakeDir fileReadAll fileReadRecord fileSizeOf
fileWriteAll find floor fraction
getTickCount hashString hour iadd
icompareEQ icompareGE icompareGT icompareLE
icompareLT icompareNE idiv imod
importCsv importSbf importTab imul
insert inside inspect integer
isAtom isBitVector isBoolean isByteVector
isCharAlphabetic isCharAlphanumeric isCharLowercase isCharName
isCharNumeric isCharUppercase isCharWhitespace isChar
isCharacter isComplex isDate isDictionary
isDirectory isEqual isError isEven
isExact isFloatVector isIdentical isInexact
isInside isIntegerVector isInteger isLambda
isMatrix isMember isMoney isNegative
isNull isNumberMatrix isNumberVector isNumber
isObjectVector isObject isOdd isPair
isPcodeVector isPositive isString isStructure
isSymbol isText isType isVector
isZero isub julian kurtosis
left length list loadModule
loadWorkspace log10 log2 log
logbase macroReplace makeQuotedList makeQuotedSymbol
max median member mid
min minute mod modi
money month muli nadd
ncompareEQ ncompareGE ncompareGT ncompareLE
ncompareLT ncompareNE ndiv new
nmod nmul now nsub
number objectToMatrix objectToNumMatrix objectToNumVector
offset openLog pair parent
parse pi pointer product
qt rad random randomize
range ref remove replace
rept right round run
saveImmediate saveModule saveObject saveRepository
saveWorkspace second setCar setCdr
setLastCdr set setf setq
sigmoid sign sin sinh
sizeof skew sleep sort
sql sqrt srandom stdev
stdevp stringCiEQ stringCiGE stringCiGT
stringCiLE stringCiLT stringCiNE stringFill
stringToBVector stringToVector string sub1
subi submit substitute substringCiEQ
substringCiGE substringCiGT substringCiLE substringCiLT
substringCiNE substringEQ substringFill substringGE
substringGT substringLE substringLT substringNE
substring sum sumsqr symbolToTypeCode
symbol system tan tanh
text time today trim
type uniqueInsert upcase var
varp vectorBinaryInnerProduct vectorBipolarInnerProduct vectorCosineInnerProduct
vectorCubeInnerProduct vectorExpInnerProduct vectorFill vectorInnerProduct
vectorLogInnerProduct vectorQuartInnerProduct vectorQuintInnerProduct vectorSigmoidInnerProduct
vectorSineInnerProduct vectorSquareInnerProduct vectorTanInnerProduct vectorTanhInnerProduct
writelg writeln year

Analytic Information Server (AIS)

AIS Component Systems

  • Smartbase Engine
  • QT C++ Libraries
  • MySQL Relational Database
  • AIS Lisp Libraries
  • Rapid Analytic Demo IDE