toWmataString method

String toWmataString()

Formats the DateTime to WMATA API format.

The WMATA API format is a string in the format of YYYY-MM-DDTHH:mm:ss.

Implementation

String toWmataString() => toIso8601String().replaceAll(RegExp(r'\.\d+'), '');