A Solidity date and time utility library deployed by Piper Merriam on October 6, 2015, providing functions to parse Unix timestamps into human-readable date com...
Key Facts
Description
The DateTime contract was deployed at block 343248 on October 6, 2015, by address 0xd3CdA913deB6f67967B99D67aCDFa1712C293601, which also deployed the Ethereum Alarm Clock fourteen days earlier on September 22, 2015. The source code includes the contract's own address in the header comment, a pattern suggesting it was designed as a shared, reusable library that other contracts could reference on-chain.
The library defines a DateTime struct containing fields for year, month, day, hour, minute, second, and weekday as unsigned integers. It exposes a parseTimestamp function that converts a Unix timestamp into this structured form. The implementation correctly handles leap year detection using the full Gregorian calendar rules: years divisible by 4 are leap years, with exceptions for century years not divisible by 400.
The contract was compiled with Solidity v0.1.3, one of the earliest stable compiler versions available on mainnet. The library pattern used here, where utility code is deployed as a standalone contract whose address is distributed, was an early approach to code reuse in Solidity before formal library linking was mature.
This deployment was part of pipermerriam's active development of the Ethereum Alarm Clock system. Scheduling transactions at future block numbers requires working with block timestamps, making date parsing utilities a practical dependency for the scheduling infrastructure.
Heuristic Analysis
The following characteristics were detected through bytecode analysis and may not be accurate.
Frontier Era
The initial release of Ethereum. A bare-bones implementation for technical users.
Bytecode Overview
Verified Source Available
This contract has verified source code on Etherscan.
View Source Code