Back

If your email is not recognized and you believe it should be, please contact us.

  • You must be logged in to reply to this topic.Login

Automating time zone change

Return to Member Forum

  • Author
    Posts
    • #63110
      Chuck Nigash
      Member

      Anyone have any GREP experience with changing an entire (variable) list of “8 p.m. EST” or “8 p.m.” to look back and trim the digit to a value like a west coast time?

      Hence, anything found like 8 p.m. or 8 p.m. EST would translate to 5 p.m. or 5 p.m. PST?

      I searched the forum, thinking I would see this already but it might be that the answer has to be front-loaded with 48 (or more!) possibilities on Find (such as 1 pm, 1:30 pm, etc) and converted to a corresponding digit for west coast. I dunno…

    • #63111
      David Blatner
      Keymaster

      Number Adjuster might help with at least part of the puzzle:

      https://creativepro.com/fre…..g-math.php

    • #63122
      Chuck Nigash
      Member

      Thank you, DB !

      After many attempts, I had to give up on it.

      I tried a simple test: 5 pm; 6 pm; 11:30; 11:45. My results with a subtraction of 1 were … 4 pm, 5 pm, 10:29, 10:44. That was a rounding factor of 0. Other rounding factors gave unpredictable results. So either I can't figure out the variables or it cant do times with minutes. I'll keep trying, see if anyone posts.

      I might have to create/combine GREP combos such as d.:d. to grab the whole number 11:30 and then see if I can apply math where 11=10.

    • #63179
      Chuck Nigash
      Member

      Solved!!! See Peter Kahrel's fine work from this morning in this Adobe scripting forum.

      https://forums.adobe.com/messag…..58#4706758

      Thanks to Peter, Kas & DB for pointing the way. Here's something for everyone.

Viewing 3 reply threads
  • You must be logged in to reply to this topic.
Forum Ads