added functions for date-time struct decomposition