BokkyPooBahsDateTimeLibrary

_daysFromDate _daysFromDate(uint256 year, uint256 month, uint256 day) → uint256 _days internal

_daysToDate _daysToDate(uint256 _days) → uint256 year, uint256 month, uint256 day internal

timestampFromDate timestampFromDate(uint256 year, uint256 month, uint256 day) → uint256 timestamp internal

timestampFromDateTime timestampFromDateTime(uint256 year, uint256 month, uint256 day, uint256 hour, uint256 minute, uint256 second) → uint256 timestamp internal

timestampToDate timestampToDate(uint256 timestamp) → uint256 year, uint256 month, uint256 day internal

timestampToDateTime timestampToDateTime(uint256 timestamp) → uint256 year, uint256 month, uint256 day, uint256 hour, uint256 minute, uint256 second internal

isValidDate isValidDate(uint256 year, uint256 month, uint256 day) → bool valid internal

isValidDateTime isValidDateTime(uint256 year, uint256 month, uint256 day, uint256 hour, uint256 minute, uint256 second) → bool valid internal

isLeapYear isLeapYear(uint256 timestamp) → bool leapYear internal

_isLeapYear _isLeapYear(uint256 year) → bool leapYear internal

isWeekDay isWeekDay(uint256 timestamp) → bool weekDay internal

isWeekEnd isWeekEnd(uint256 timestamp) → bool weekEnd internal

getDaysInMonth getDaysInMonth(uint256 timestamp) → uint256 daysInMonth internal

_getDaysInMonth _getDaysInMonth(uint256 year, uint256 month) → uint256 daysInMonth internal

getDayOfWeek getDayOfWeek(uint256 timestamp) → uint256 dayOfWeek internal

getYear getYear(uint256 timestamp) → uint256 year internal

getMonth getMonth(uint256 timestamp) → uint256 month internal

getDay getDay(uint256 timestamp) → uint256 day internal

getHour getHour(uint256 timestamp) → uint256 hour internal

getMinute getMinute(uint256 timestamp) → uint256 minute internal

getSecond getSecond(uint256 timestamp) → uint256 second internal

addYears addYears(uint256 timestamp, uint256 _years) → uint256 newTimestamp internal

addMonths addMonths(uint256 timestamp, uint256 _months) → uint256 newTimestamp internal

addDays addDays(uint256 timestamp, uint256 _days) → uint256 newTimestamp internal

addHours addHours(uint256 timestamp, uint256 _hours) → uint256 newTimestamp internal

addMinutes addMinutes(uint256 timestamp, uint256 _minutes) → uint256 newTimestamp internal

addSeconds addSeconds(uint256 timestamp, uint256 _seconds) → uint256 newTimestamp internal

subYears subYears(uint256 timestamp, uint256 _years) → uint256 newTimestamp internal

subMonths subMonths(uint256 timestamp, uint256 _months) → uint256 newTimestamp internal

subDays subDays(uint256 timestamp, uint256 _days) → uint256 newTimestamp internal

subHours subHours(uint256 timestamp, uint256 _hours) → uint256 newTimestamp internal

subMinutes subMinutes(uint256 timestamp, uint256 _minutes) → uint256 newTimestamp internal

subSeconds subSeconds(uint256 timestamp, uint256 _seconds) → uint256 newTimestamp internal

diffYears diffYears(uint256 fromTimestamp, uint256 toTimestamp) → uint256 _years internal

diffMonths diffMonths(uint256 fromTimestamp, uint256 toTimestamp) → uint256 _months internal

diffDays diffDays(uint256 fromTimestamp, uint256 toTimestamp) → uint256 _days internal

diffHours diffHours(uint256 fromTimestamp, uint256 toTimestamp) → uint256 _hours internal

diffMinutes diffMinutes(uint256 fromTimestamp, uint256 toTimestamp) → uint256 _minutes internal

diffSeconds diffSeconds(uint256 fromTimestamp, uint256 toTimestamp) → uint256 _seconds internal