second property
int
second
The second 0...59
.
var moonLanding = Jdate.parse('1969-07-20 20:18:04Z');
assert(moonLanding.second == 4);
Implementation
int get second => _second;
The second 0...59
.
var moonLanding = Jdate.parse('1969-07-20 20:18:04Z');
assert(moonLanding.second == 4);
Implementation
set second(int second) {
if (second >= 0 && second < 60) {
_microsecondsSinceEpoch += 1000000 * (-_second + second);
_millisecondsSinceEpoch += 1000 * (-_second + second);
_second = second;
} else {
throw 'Second number out of range';
}
}