days360

 

 

Overview

The days360 function returns the number of days between two given dates based on a 360-day year. For example, between February 15 and March 15, days360 returns 30 days, even though the number of days between these dates is actually 28 or 29.

Usage

The day360 function is useful for computing payments in accounting systems that simplify the calendar year into twelve equal 30-day months.

 

Syntax


Expression:

(days360 start-Date end-Date )


Arguments Name Type Description
Argument:start-dateDate Text String The beginning date of the time period for which you want to compute the number of days.
Argument:end-dateDate Text String The ending date of the time period for which you want to compute the number of days.

Returns:

Returns the number of days between start-date and end-date If the end-date is earlier than the start-date, the return value is a negative value.



 

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 Text Number
Integer

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 badd balance
bdiv binaryInsert binaryNand binaryNor
binaryNot binaryNxor binarySearch bitwiseAnd
bitwiseNand bitwiseNor bitwiseNot bitwiseNxor
bitwiseOr bitwiseShiftLeft bitwiseShiftRight bitwiseXor
bmod bmul boolean cadd
cdiv char character clean
closeLog cmod cmul code
compareEQ compareGE compareGT compareLE
compareLT compareNE compare comparison
compress cons cos cosh
count csub date day
days360 debugBrowsableProcs debugDetective debugEval
decode deg deleteRows delete
dimension disassemble display divi
downcase encode evalInSyncLocalContext eval
exit exp exportCsv exportSbf
exportTab expt fact fdisplay
fileClose fileCopy fileDir fileDisplay
fileEraseDir fileErase fileExists fileMakeDir
fileOpen fileReadAll fileReadRecord fileRead
fileResize fileSeek fileSizeOf fileWriteAll
fileWrite filewriteln findBlock find
floor fraction freeBlock gcd
getRecursionCount getTickCount hashString hour
iadd icompareEQ icompareGE icompareGT
icompareLE icompareLT icompareNE idiv
imod importCsv importSbf importTab
imul insertRows insert inside
inspect integer isAtom isBitVector
isBoolean isBound 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 lcm
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 preAllocateFixedMemoryBlocks
product qt rad random
randomize range rank refAttributes
refValues ref remove replace
rept resize right round
run saveImmediate saveModule saveObject
saveRepository saveWorkspace second setAttributes
setBlock 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 svmRegression symbolToTypeCode
symbol system tan tanh
text time today trim
type uniqueInsert upcase var
varp vectorBinaryInnerProduct vectorBipolarInnerProduct vectorCosineInnerProduct
vectorCubeInnerProduct vectorDelete 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