C# Class Wsdot.Gtfs.IO.Extensions

Provides extension methods.
Mostra file Open project: WSDOT-GIS/GTFS.NET

Public Methods

Method Description
ParseGtfsDate ( this s ) : System.DateTime

Parses a date string in the format used by GTFS.

ParseGtfsNullableDate ( this s ) : DateTime?

Parses a date string in the format used by GTFS.

ParseGtfsNullableTimeSpan ( this s ) : TimeSpan?

Parses a TimeSpan string in the format used by GTFS.

Method Details

ParseGtfsDate() public static method

Parses a date string in the format used by GTFS.
Thrown if is . Thrown if is not in yyyyMMdd format.
public static ParseGtfsDate ( this s ) : System.DateTime
s this A date in yyyyMMdd format.
return System.DateTime

ParseGtfsNullableDate() public static method

Parses a date string in the format used by GTFS.
public static ParseGtfsNullableDate ( this s ) : DateTime?
s this A date in yyyyMMdd format.
return DateTime?

ParseGtfsNullableTimeSpan() public static method

Parses a TimeSpan string in the format used by GTFS.
public static ParseGtfsNullableTimeSpan ( this s ) : TimeSpan?
s this A string representation of a .
return TimeSpan?