# TinyGsmTime.tpp (file) **Module:** **[src](dir_68267d1309a1af8e8297ef4c3efbcdba.html)** **/** **[TinyGsmTime.tpp](_tiny_gsm_time_8tpp.html)** Clock and date-time helper mixin for modem implementations. **Author** Volodymyr Shymanskyy **License** LGPL-3.0 **Copyright** Copyright (c) 2016 Volodymyr Shymanskyy **Date** Nov 2016 ## Classes | | Name | | --- | --- | | class | **TinyGsmTime** | ## Types | | Name | | --- | --- | | enum class int8_t | [TinyGSMDateTimeFormat](#a4d77a5e8d7107365e5ca6f8815ac5714) { DATE_FULL = 0, DATE_TIME = 1, DATE_DATE = 2 }
Enum for different date/time formats. | | enum class int8_t | [TinyGSM_EpochStart](#a5addcc95a1822928505c18c8b9b9a277) { UNIX = 0, Y2K = 1, GPS = 2 }
Enum for the epoch start value. | ### TinyGSMDateTimeFormat ​ | Enumerator | Value | Description | | --- | --- | --- | | ​DATE_FULL | 0 | The full date and time. | | ​DATE_TIME | 1 | Only the time portion of the date/time. | | ​DATE_DATE | 2 | Only the date portion of the date/time. | ### TinyGSM_EpochStart ​ | Enumerator | Value | Description | | --- | --- | --- | | ​UNIX | 0 | Use a Unix epoch, starting 1/1/1970 (946684800 seconds before the Y2K epoch, 315964800 seconds before the GPS epoch). | | ​Y2K | 1 | Use an epoch starting 1/1/2000, as some RTCs and Arduinos do (946684800 seconds after the UNIX epoch, 630720000 seconds after the GPS epoch). | | ​GPS | 2 | Use the GPS epoch starting Jan 6, 1980 (315964800 seconds after the UNIX epoch, 630720000 seconds before the Y2K epoch). | --- Generated by [Doxygen](https://www.doxygen.nl) and [m.css](https://mcss.mosra.cz/) with templates from [doxybook2](https://github.com/matusnovak/doxybook2)