- Types update.
namespace tz
becomesinterface MomentTimezone
. That reflects the moment-timezone v0.5.30 definition file.
BREAKING CHANGES: The package now use the in-built types of moment-timezone. The type of arguments is narrowed.
- Type of
this
forforLocaltime
wasany
and is nowtypeof moment.tz
. - Type
extend
now requires atypeof moment
.
- Update tests according to tzdata of moment-timezone 0.2.0.
- (No actual changes otherwise)
extend(moment)
method which add the functionforLocalTime
tomoment.tz
.forLocalTime
can be used as a standalone without mutatingmoment
.