fromNow method
DateTime
fromNow({
- int days = 0,
- int hours = 0,
- int minutes = 0,
- int seconds = 0,
- int milliseconds = 0,
- int microseconds = 0,
inherited
Returns the point in time that's given amount of time from now. The amount of time is the sum of individual parts. Parts are compatible with ones defined in Duration.
Implementation
DateTime fromNow(
{int days = 0,
int hours = 0,
int minutes = 0,
int seconds = 0,
int milliseconds = 0,
int microseconds = 0}) =>
fromNowBy(Duration(
days: days,
hours: hours,
minutes: minutes,
seconds: seconds,
milliseconds: milliseconds,
microseconds: microseconds));