- java.lang.Object
-
- org.quantlib.Date
-
- All Implemented Interfaces:
AutoCloseable,org.quantlib.helpers.QuantLibJNIHelpers.AutoCloseable
public class Date extends Object implements org.quantlib.helpers.QuantLibJNIHelpers.AutoCloseable
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanswigCMemOwn
-
Constructor Summary
Constructors Modifier Constructor Description Date()Date(int serialNumber)Date(int d, Month m, int y)Date(int d, Month m, int y, int hours, int minutes, int seconds)Date(int d, Month m, int y, int hours, int minutes, int seconds, int millisec)Date(int d, Month m, int y, int hours, int minutes, int seconds, int millisec, int microsec)protectedDate(long cPtr, boolean cMemoryOwn)Date(String str, String fmt)
-
Method Summary
-
-
-
Field Detail
-
swigCMemOwn
protected transient boolean swigCMemOwn
-
-
Method Detail
-
swigRelease
protected static long swigRelease(Date obj)
-
delete
public void delete()
- Specified by:
deletein interfaceorg.quantlib.helpers.QuantLibJNIHelpers.AutoCloseable
-
dayOfMonth
public int dayOfMonth()
-
dayOfYear
public int dayOfYear()
-
year
public int year()
-
hours
public int hours()
-
minutes
public int minutes()
-
seconds
public int seconds()
-
milliseconds
public int milliseconds()
-
microseconds
public int microseconds()
-
fractionOfDay
public double fractionOfDay()
-
fractionOfSecond
public double fractionOfSecond()
-
serialNumber
public int serialNumber()
-
isLeap
public static boolean isLeap(int y)
-
todaysDate
public static Date todaysDate()
-
localDateTime
public static Date localDateTime()
-
universalDateTime
public static Date universalDateTime()
-
endOfMonth
public static Date endOfMonth(Date arg0)
-
isEndOfMonth
public static boolean isEndOfMonth(Date arg0)
-
nextWeekday
public static Date nextWeekday(Date arg0, Weekday arg1)
-
nthWeekday
public static Date nthWeekday(long n, Weekday arg1, Month m, int y)
-
weekdayNumber
public int weekdayNumber()
-
toLocalDate
public LocalDate toLocalDate()
-
-