from_unixtime
Functie
Van toepassing op: Databricks Databricks Runtime
Retourneert unixTime
in fmt
.
Syntaxis
from_unixtime(unixTime [, fmt])
Argumenten
unixTime
: een BIGINT-expressie die seconden vertegenwoordigt die zijn verstreken sinds 1969-12-31 om 16:00:00.- fmt: een optionele STRING-expressie met een geldige indeling.
Retourneert
EEN TEKENREEKS.
Zie Datum/tijd-patronen voor geldige notaties. Het patroon 'jjjj-MM-dd UU:mm:ss' wordt gebruikt als u dit weglaat.
Voorbeelden
> SELECT from_unixtime(0, 'yyyy-MM-dd HH:mm:ss');
1969-12-31 16:00:00
> SELECT from_unixtime(0);
1969-12-31 16:00:00