public class DateTimeCalculator extends Object
| Constructor and Description |
|---|
DateTimeCalculator() |
| Modifier and Type | Method and Description |
|---|---|
protected static Ptg |
calcDate(Ptg[] operands)
DATE
|
protected static Ptg |
calcDateValue(Ptg[] operands)
DATEVALUE
Returns the serial number of the date represented by date_text.
|
protected static Ptg |
calcDay(Ptg[] operands)
DAY
Return the day of the month
|
protected static Ptg |
calcDays360(Ptg[] operands)
DAYS360
Calculate the difference between 2 dates based on a 360
day year, 12 mos, 30days each.
|
protected static Ptg |
calcEdate(Ptg[] operands)
EDATE
Returns the serial number that represents the date that is the indicated number of months
before or after a specified date (the start_date).
|
protected static Ptg |
calcEOMonth(Ptg[] operands)
EOMONTH
Returns the serial number for the last day of the month that is the indicated number of months
before or after start_date.
|
protected static Ptg |
calcHour(Ptg[] operands)
HOUR
Converts a serial number to an hour
|
protected static Ptg |
calcMinute(Ptg[] operands)
MINUTE
Converts a serial number to a minute
|
protected static Ptg |
calcMonth(Ptg[] operands)
MONTH
Converts a serial number to a month
|
protected static Ptg |
calcNetWorkdays(Ptg[] operands)
NETWORKDAYS
Returns the number of whole working days between start_date and end_date.
|
protected static Ptg |
calcNow(Ptg[] operands)
NOW
Returns the serial number of the current date and time
|
protected static Ptg |
calcSecond(Ptg[] operands)
SECOND
Converts a serial number to a second
|
protected static Ptg |
calcTime(Ptg[] operands)
TIME
Returns the serial number of a particular time
takes 3 arguments, hour, minute, second;
|
protected static Ptg |
calcTimevalue(Ptg[] operands)
TIMEVALUE
Converts a time in the form of text to a serial number
Returns the decimal number of the time represented by a text string.
|
protected static Ptg |
calcToday(Ptg[] operands)
TODAY
Returns the serial number of today's date
|
protected static Ptg |
calcWeekday(Ptg[] operands)
WEEKDAY Converts a serial number to a day of the week
|
protected static Ptg |
calcWeeknum(Ptg[] operands)
WEEKNUM
Returns a number that indicates where the week falls numerically within a year.
|
protected static Ptg |
calcWorkday(Ptg[] operands)
WORKDAY
Returns a number that represents a date that is the indicated number of working days before or after a date (the starting date).
|
protected static Ptg |
calcYear(Ptg[] operands)
YEAR
Converts a serial number to a year
|
protected static Ptg |
calcYearFrac(Ptg[] operands)
YEARFRAC function
Calculates the fraction of the year represented by the number of whole days between two dates (the start_date and the end_date).
|
protected static Ptg calcDateValue(Ptg[] operands)
operands - Ptg[]protected static Ptg calcDays360(Ptg[] operands)
protected static Ptg calcEdate(Ptg[] operands)
protected static Ptg calcEOMonth(Ptg[] operands)
protected static Ptg calcMinute(Ptg[] operands)
protected static Ptg calcNetWorkdays(Ptg[] operands)
protected static Ptg calcNow(Ptg[] operands)
protected static Ptg calcSecond(Ptg[] operands)
protected static Ptg calcTime(Ptg[] operands)
protected static Ptg calcTimevalue(Ptg[] operands)
protected static Ptg calcToday(Ptg[] operands)
protected static Ptg calcWeekday(Ptg[] operands)
protected static Ptg calcWeeknum(Ptg[] operands)
operands - protected static Ptg calcWorkday(Ptg[] operands)
operands - protected static Ptg calcYearFrac(Ptg[] operands)
Copyright © 2002–2019 Starter Inc.. All rights reserved.