toLocal method
Returns a new instance of Jiffy with the same date and time in local time zone.
If the current Jiffy instance is in UTC time zone, the date and time will be converted to local time zone. Otherwise, the current instance will be returned as is.
Implementation
Jiffy toLocal() {
final dateTime = Query.isUtc(this.dateTime)
? _manipulator.toLocal(this.dateTime)
: this.dateTime;
return _clone(dateTime);
}