Spec-Zone.ru › ColdFusion

getTimeZone

Returns the time zone for the current request.

getTimeZone() → returns string

  • CF2021+
  • Lucee
  • BL 1.0.0+
  • See Also: getTimeZoneInfo setTimeZone

    Examples
    Sample code invoking the getTimeZone function

    What is the current time zone that's set?

    Set the time zone, then retrieve it.

    setTimeZone("Etc/UTC");
    writeOutput(getTimeZone().timezone);

    Expected Result: Etc/UTC

    © 2012–present Foundeo, Inc. and the CFDocs contributors.
    Licensed under the MIT License.
    ColdFusion is a trademark of Adobe Systems Incorporated.
    https://cfdocs.org/gettimezone

    Spec-Zone.ru

    Настройки Оффлайн Что нового Помощь О нас
    Spec-Zone .ru
    спецификации, руководства, описания, API