444
Views
3
Comments
Solved
Subtract hour from Time
Question

Hi, I would like to subtract 3 hours from my current time ( I want to get GMT -3). In order to achieve this, what is the best practice? In addition, I just want to get the time and not date and time.


2020-08-05 08-52-58
Ruben Goncalves
Solution

Hi Matheus,

To achieve what you want, you can use the built in functions of the platform:

  • addTime
  • DateTimeToTime

An example of its usage would be:

(The above expression will return the current (server) Time, subtracted to 3h.)

Hope this helps you,

Cheers,

RG

2024-05-03 14-03-28
Sudip Dey

Ruben G wrote:

Hi Matheus,

To achieve what you want, you can use the built in functions of the platform:

  • addTime
  • DateTimeToTime

An example of its usage would be:

(The above expression will return the current (server) Time, subtracted to 3h.)

Hope this helps you,

Cheers,

RG

I think what Ruben G said is the solution for it. Please check and let us know. 

Thank you


UserImage.jpg
Matheus Rodaelli Gaiotto

Thank you, it solved my problem.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.