added support for ordinal time, but might have some errors