second property Null safety

int? second

The second [0...59].

Returns null if this is null

final moonLanding = DateTime.parse('1969-07-20 20:18:04Z');
print(moonLanding.second); // 4

Implementation

int? get second => _value?.second;