Open GoogleCodeExporter opened 9 years ago
Thanks for the suggestion.
Right now you can use UTC_USEC_TO_{HOUR,DAY,WEEK,MONTH,YEAR}, which does
effectively the same thing for numeric time values. For example, to truncate to
the nearest month, you can write:
USEC_TO_TIMESTAMP(UTC_USEC_TO_MONTH(TIMESTAMP_TO_USEC(timestamp)))
I know it's clumsy that you have to convert back and forth from timestamps, but
I think this will do what you want.
Original comment by jcon...@google.com
on 2 Apr 2015 at 5:03
Original issue reported on code.google.com by
mgr...@zulily.com
on 2 Apr 2015 at 4:25