Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Timezone variable Expression

  • Filip Vandueren

    June 14, 2022 at 11:57 am

    Links have a funny way of doing that after 15 years 🙂

    The basics could be something like this:

    originalTime = thisComp.layer("time").text.sourceText.value; // get a time as a string

    timeComponents = originalTime.split(":"); // convert it to an array [hourString, minuteString]

    d = new Date(0);

    timeOffset = 1; // 1 hour later
    d2 = new Date(d.getTime()+timeOffset*3600000);
    offsetTime = d2.toLocaleTimeString([], {hour: '2-digit', minute: '2-digit'});

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy