Given a string object x representing a date in the given format, convert it to a datetime.date object and return the result If inverse == True, then assume that x is a date object and return its corresponding string in the given format.
Given a Shapely linestring and two Shapely points, project the points onto the linestring, and return the distance along the linestring between the two points. If q is None, then return the distance from the start of the linestring to the projection of p. The distance is measured in the native coordinates of the linestring.
Given a GTFS time string in the format %H:%M:%S, return a timestring in the same format but with the hours taken modulo 24.
Given a time string of the form ‘%H:%M:%S’, return the number of seconds past midnight that it represents. In keeping with GTFS standards, the hours entry may be greater than 23. If mod24 == True, then return the number of seconds modulo 24*3600. If inverse == True, then do the inverse operation. In this case, if mod24 == True also, then first take the number of seconds modulo 24*3600.
Given a distance x in units units, convert it to kilometers and return the result.
Given a weekday, that is, an integer in range(7), return it’s corresponding weekday name as a lowercase string. Here 0 -> ‘monday’, 1 -> ‘tuesday’, and so on. If inverse == True, then perform the inverse operation.