subtractDuration method
Subtracts the provided duration
from the current Jiffy instance's
date and time, and returns a new Jiffy instance with the updated value.
Example:
final jiffy = Jiffy.parseFromList([1997, 9, 23]);
final updatedJiffy = jiffy.subtractDuration(Duration(days: 10));
print(updatedJiffy.yMMMMd);
// output: 'September 13, 1997'
Implementation
Jiffy subtractDuration(Duration duration) {
final dateTime = _manipulator.subtractDuration(this.dateTime, duration);
return _clone(dateTime);
}