floor static method
Rounds the DateTime to the closest past TimeUnitDuration
Implementation
static DateTime floor(DateTime dateTime, TimeUnit tu) =>
Jiffy.parseFromDateTime(dateTime).startOf(tu.asUnit()).dateTime;
Rounds the DateTime to the closest past TimeUnitDuration
static DateTime floor(DateTime dateTime, TimeUnit tu) =>
Jiffy.parseFromDateTime(dateTime).startOf(tu.asUnit()).dateTime;