julian

 

 

Overview

The julian function converts a date expressed a String constant or a Date object into a Julian date form. The Julian date is the number of days elapsed since the birth of Christ.

Usage

The julian function is used to convert a string constant in the form : "mm/dd/yyyy" into a Julian date which a Number that can be used in arithmetic computations. It can also coerce a Date object into a Julian date.

 

Syntax


Expression:

(julian dateObj)

(julian dateStr )


Arguments Name Type Description
Argument:dateObjDate An Analytic Information Server Date obj.
Argument:dateStr String A date represented as a String form "mm/dd/yyyy" where mm is the number of the month, dd is the number of the day and yyyy is the number of the year (negative if before Christ). If you omit the year from the argument, the function defaults to the current year in your system.

Returns:

The Julian date expressed as a Number.



 

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