Zum Inhalt springen

Wandelt eine angegebene Anzahl von Jahrhunderten in den Typ Interval um.

  • Akzeptiert positive Ganzzahlen, null und negative Ganzzahlen als Eingabe.
func.to_centuries(<centuries>)
func.to_centuries(2)
┌──────────────────────────────────────────────────────┐
│ func.to_centuries(2) │
├──────────────────────────────────────────────────────┤
│ 200 years │
└──────────────────────────────────────────────────────┘
TO_CENTURIES(<centuries>)

Interval (in Jahren dargestellt).

SELECT TO_CENTURIES(2), TO_CENTURIES(0), TO_CENTURIES(-2);
┌───────────────────────────────────────────────────────┐
│ to_centuries(2) │ to_centuries(0) │ to_centuries(- 2) │
├─────────────────┼─────────────────┼───────────────────┤
│ 200 years │ 00:00:00 │ -200 years │
└───────────────────────────────────────────────────────┘