JavaScript modulo operator calculates a negative remainder if the dividend becomes negative. Thus current implementation renders signed nanoseconds on %N directive for negative timestamps, i.e. dates prior 1970-01-01:
var d = '1969-12-31 23:59:59.100'
var utc = tz(d) // -900
tz(utc, '%Y-%m-%d %H:%M:%S.%3N')
// -> "1969-12-31 22:59:59.-90"
JavaScript modulo operator calculates a negative remainder if the dividend becomes negative. Thus current implementation renders signed nanoseconds on
%N
directive for negative timestamps, i.e. dates prior 1970-01-01: