Modify values of date/time text string in HTML with JS/jQuery

I’d like to convert part of a date/time text string to a number, perform addition/subtraction on it, taking into account the am/pm switch-over at 12:00, and run it behind the original. Possible?

For example, in the existing HTML,

<span class="time">12:30pm EST</span>

should display as

<span class="time">12:30pm EST / 9:30am PST</span>

Read more here:

Content Attribution

This content was originally published by Molesworth at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: