How to use the datetimerange.DateTimeRange.NOT_A_TIME_STR function in DateTimeRange

To help you get started, we’ve selected a few DateTimeRange examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github thombashi / DateTimeRange / test / test_dtr.py View on Github external
def test_abnormal_1(self, datetimerange_null):
        assert datetimerange_null.get_start_time_str() == DateTimeRange.NOT_A_TIME_STR

DateTimeRange

DateTimeRange is a Python library to handle a time range. e.g. check whether a time is within the time range, get the intersection of time ranges, truncate a time range, iterate through a time range, and so forth.

MIT
Latest version published 7 months ago

Package Health Score

62 / 100
Full package analysis

Similar packages