Example Date julian 001

 

 

Description

These examples use the julian function to convert the Text or normal Date-formatted arguments into a numeric Julian Date format.

 

Details

Text is converted into a numeric Date format.

(julian "7/4/1992") Returns: 727747.0

The standard Date format is converted into a numeric Data format.

(julian #Jul,4,1992) Returns: 727747.0
(julian "1/2/-1000") Returns: -365241.0

Notes and Hints

The Julian form of a date is useful when it is necessary to perform arithmetic computations with a date. However for human-readability, it is more convenient to view a date as a string. The Lisp string function is capable of converting a Date object to a String object. Since the Julian function returns a Number, it is necessary to coerce the Julian date to a Date object first, and then convert the Date object to a String object:

(string (date 713882.75))

Returns: #Jul,19,1954:18:00:00

(string (date 727763) )

Returns: #Jul,20,1992

(string (date -365249) )

Returns: #Dec,25,1001BC

 

Related Examples

Here are examples of the julian function at work.

Date julian 001

 

Function Links

Here is the link to the current function used in this example.

julian

Here are a number of links to other related functions.

isDate(Date) date(Date) string(Date)

 

Argument Types

Here are the links to the data types of the arguments used in this example.

Date String Number

Here are a number of links to examples having similar argument types.

BitVector isType 020 BitVector ref 027 BitVector setq 024 Boolean isType 011
ByteVector isCharAlphabetic 003 ByteVector isCharAlphanumeric 003 ByteVector isCharLowercase 003 ByteVector isCharName 003
ByteVector isCharNumeric 003 ByteVector isCharUppercase 003 ByteVector isCharWhitespace 003 Character isType 012
Complex * 002 Complex / 002 Complex compare 021 Complex cos 002
Complex exp 002 Complex expt 002 Complex log 002 Complex mod 002
Complex sqrt 002 Complex tan 002 Context debugBrowsableProcs 001 Context disassemble 001
Date addMethod 015 Date addMethod 016 Date compare 012 Date compareEQ 012
Date compareGE 012 Date compareGT 012 Date compareLE 012 Date compareLT 012
Date compareNE 012 Date comparison functions 011 Date date 001 Date day 001
Date days360 001 Date getTickCount 001 Date hour 001 Date isDate 001
Date isEqual 010 Date isEqual 011 Date isIdentical 010 Date isType 014
Date julian 001 Date minute 001 Date month 001 Date now 001
Date ref 020 Date second 001 Date setq 019 Date sizeof 012
Date time 001 Date time 002 Date today 001 Date type 014
Date year 001 Dictionary isDictionary 001 Dictionary isType 006 Dictionary new 004
Directory isType 007 Directory new 005 Directory ref 010 Directory ref 012
Error error 001 Error errorTrap 001 Error isError 001 Error onError 001
FileIO closeLog 001 FltVector isType 016 FltVector ref 022 FltVector setq 019
Function isType 015 Function ref 021 Function sizeof 013 IntVector isType 017
IntVector ref 023 IntVector setq 020 Integer binaryNand 001 Integer binaryNor 001
Integer binaryNxor 001 Integer bitwiseAnd 001 Integer bitwiseNand 001 Integer bitwiseNor 001
Integer bitwiseNxor 001 Integer bitwiseOr 001 Integer bitwiseShiftLeft 001 Integer bitwiseShiftRight 001
Integer bitwiseXor 001 Integer fact 001 Integer isInteger 001 Matrix isType 009
Matrix ref 015 Matrix ref 016 NumMatrix isType 022 NumMatrix ref 035
NumVector isType 018 NumVector ref 024 NumVector setq 021 NumVector svmRegression 001
NumVector vectorBinaryInnerProduct 001 NumVector vectorBipolarInnerProduct 001 NumVector vectorCosineInnerProduct 001 NumVector vectorCubeInnerProduct 001
NumVector vectorExpInnerProduct 001 NumVector vectorInnerProduct 001 NumVector vectorLogInnerProduct 001 NumVector vectorQuartInnerProduct 001
NumVector vectorQuintInnerProduct 001 NumVector vectorSigmoidInnerProduct 001 NumVector vectorSineInnerProduct 001 NumVector vectorSquareInnerProduct 001
NumVector vectorTanInnerProduct 001 NumVector vectorTanhInnerProduct 001 Number * 001 Number + 001
Number - 001 Number / 001 Number abs 001 Number add1 001
Number addMethod 014 Number addi 001 Number asin 001 Number atan 001
Number avg 001 Number compare 011 Number compareEQ 011 Number compareGE 011
Number compareGT 011 Number compareLE 011 Number compareLT 011 Number compareNE 011
Number comparison 010 Number cos 001 Number cosh 001 Number deg 001
Number divi 001 Number exp 001 Number expt 001 Number fact 001
Number floor 001 Number fraction 001 Number isEqual 009 Number isEven 001
Number isExact 001 Number isIdentical 009 Number isInexact 001 Number isMoney 001
Number isNegative 001 Number isNull 001 Number isNumber 001 Number isOdd 001
Number isPositive 001 Number isType 013 Number isZero 001 Number kurtosis 001
Number log 001 Number log10 001 Number log2 001 Number logbase 001
Number max 001 Number median 001 Number min 001 Number mod 001
Number modi 001 Number muli 001 Number nadd 001 Number ncompareGE 001
Number ncompareGT 001 Number ncompareLE 001 Number ncompareLT 001 Number ndiv 001
Number nmod 001 Number nmul 001 Number nsub 001 Number number 001
Number pi 001 Number product 001 Number rad 001 Number random 001
Number randomize 001 Number range 001 Number ref 019 Number round 001
Number setq 018 Number sign 001 Number sin 001 Number sinh 001
Number sizeof 011 Number skew 001 Number sqrt 001 Number srandom 001
Number stdev 001 Number stdevp 001 Number sub1 001 Number subi 001
Number sumsqr 001 Number tan 001 Number tanh 001 Number type 013
Number var 001 Number varp 001 ObjVector isType 019 ObjVector ref 025
ObjVector setq 022 PcodeVector ref 026 PcodeVector setq 023 ShortVector isType 018
ShortVector ref 024 ShortVector setq 021 String addMethod 001 String append 001
String append 002 String clean 001 String code 001 String compare 001
String compareEQ 001 String compareGE 001 String compareGT 001 String compareLE 001
String compareLT 001 String compareNE 001 String comparison functions 001 String defMethod 001
String defMethod 002 String downcase 001 String fileRead 001 String fileRead 002
String fileReadRecord 001 String fileWrite 001 String find 001 String find 002
String hashString 001 String isChar 001 String isCharAlphabetic 001 String isCharAlphanumeric 001
String isCharLowercase 001 String isCharName 001 String isCharNumeric 001 String isCharUppercase 001
String isCharWhitespace 001 String isEqual 001 String isEqual 002 String isObject 001
String isString 001 String isText 001 String isType 001 String isType 002
String isType 003 String left 001 String length 001 String length 002
String methodsOf 001 String methodsOf 002 String methodsOf 003 String mid 001
String new 001 String parse 001 String ref 001 String ref 002
String replace 001 String rept 001 String right 001 String send 001
String sizeof 001 String string 001 String string 002 String string 003
String stringCiEQ 001 String stringCiGE 001 String stringCiGT 001 String stringCiLE 001
String stringCiLT 001 String stringCiNE 001 String stringFill 001 String stringToBVector 001
String stringToBVector 002 String stringToBVector 003 String stringToVector 001 String stringToVector 002
String stringToVector 003 String stringToVector 004 String substitute 001 String substitute 002
String substring 001 String substring 002 String substringCiEQ 001 String substringCiGE 001
String substringCiGT 001 String substringCiLE 001 String substringCiLT 001 String substringCiNE 001
String text 001 String trim 001 String type 001 String upcase 001
String upcase 002 String upcase 003 Structure apply 002 Structure ref 004
Structure setq 003 Structure setq 004 Structure setq 005 Structure setq 006
Symbol *< 001 Symbol +< 001 Symbol -< 001 Symbol /< 001
Symbol isCharAlphabetic 002 Symbol isCharAlphanumeric 002 Symbol isCharLowercase 002 Symbol isCharName 002
Symbol isCharNumeric 002 Symbol isCharUppercase 002 Symbol isCharWhitespace 002 Symbol isObject 002
Symbol isSymbol 001 Symbol isType 004 Symbol length 003 Symbol makeQuotedSymbol 001
Symbol send 002 Symbol sizeof 002 Symbol symbol 001 Symbol symbol 002
Symbol type 002 Vector isType 008 Vector ref 013 Vector ref 014
Void isType 010 Void ref 017 substringEQ 001 substringFill 001
substringGE 001 substringGT 001 substringLE 001 substringLT 001
substringNE 001

How do I contact the AIS Server team?

You can always talk with the AIS at aiserver.sourceforge.net.