Title: Time math
Last modified: January 30, 2020

---

# Time math

 *  [taxumi](https://wordpress.org/support/users/taxumi/)
 * (@taxumi)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/date-math/)
 * Hi,
    I tried to do date maths about time. For example, I set a variable to be
   current time (formatted H:i:s). Then I do a math with [calc]current + 20[/calc]
   where 20 is 20 sec. But it only adds 20 to the Hours.
 * I guess I have to convert “current” to ISO time format then do the math, but 
   I don’t see a guide about converting that.
 * Could you please assisting me on this?
    Thanks a lot.
    -  This topic was modified 6 years, 4 months ago by [taxumi](https://wordpress.org/support/users/taxumi/).

The topic ‘Time math’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/custom-content-shortcode_766976.svg)
 * [Custom Content Shortcode](https://wordpress.org/plugins/custom-content-shortcode/)
 * [Support Threads](https://wordpress.org/support/plugin/custom-content-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-content-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-content-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-content-shortcode/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [taxumi](https://wordpress.org/support/users/taxumi/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/date-math/)
 * Status: not resolved