datetime\addHours

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • peterberlin
    Active Community Member
    • Mar 2015
    • 1004

    datetime\addHours

    Hi, The function only works with integers 1 or 2 or 6, not with fractional numbers 3.5 or 4.25 or 5.25?

    Is there a function to convert 3.5 hours into minutes?

    peter

  • tanya
    Senior Member
    • Jun 2014
    • 4308

    #2
    Hello

    are you looking for datetime\addMinutes('field', (3.5 * 60))?
    or you can datetime\addHours(datetime\addMinutes('field', 30),3);

    Comment

    • peterberlin
      Active Community Member
      • Mar 2015
      • 1004

      #3
      a good idea. many thanks

      Comment

      Working...