this will return nil if time is not a string, that what you want? It would break line 788 maybe