Returns the time of the given date expressed in the given unit.
The unit of time to return (e.g. "hour" returns time in hours).
The date of which to get the time (default is current date).
Returns the time of the given date expressed in the given unit.