clone method

Jiffy clone()

Returns a new Jiffy instance with the same date and time as the original instance.

final originalJiffy = Jiffy();
final newJiffy = originalJiffy.clone();

The returned instance is not tied to the original instance, so modifying the new instance will not affect the original.

Implementation

Jiffy clone() => Jiffy.parseFromDateTime(dateTime);