InqvineDateTimeExtensions extension

on

Properties

asSecondsEpoch int
Converts the given DateTime object to the number of seconds since epoch
no setter
ddMMyyyy String
Converts the given DateTime object to a formatted variant. Example: 05/03/2020
no setter
diffMonthsFromCurrent num
Gets the number of months between the supplied DateTime and the current time
no setter
diffYearsFromCurrent num
Gets the number of years between the supplied DateTime and the current time
no setter
hhmma String
Converts the given DateTime object to a formatted variant. Example: 12:00pm
no setter
hhmmadoMMMMyyyy String
Converts the given DateTime object to a formatted variant. Example: 12:00pm - Fri the 5th of March
no setter
toJiffy Jiffy
Converts the given DateTime to a Jiffy object
no setter

Methods

diffFromCurrent(Unit unit) num
Gets a unit difference between the supplied DateTime and the current time