+ Reply to Thread
Results 1 to 5 of 5

GMT to Central Tme

  1. #1
    Registered User
    Join Date
    03-24-2007
    Posts
    88

    GMT to Central Tme

    I need to subtract 5 hours from military times in SAP. I am having problems when subtracting from military times less then the 5 hours.
    Last edited by Nunzio; 10-10-2011 at 07:38 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: GMT to Central Tme

    What result would you expect? The "borrow" has to come from the date.

    If A1 contains a date and time, then =A1-"5:00" returns the time five hours earlier, which may be on the prior date.

    If A1 just contains a time, then =A1-"5:00" + (A1-5":00"<0) returns just the time.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: GMT to Central Tme

    if just times you could also try this

    =MOD(A1-"5:00",1)
    Audere est facere

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: GMT to Central Tme

    See my post at MrE ...

  5. #5
    Registered User
    Join Date
    03-24-2007
    Posts
    88

    Re: GMT to Central Tme

    Thanks daddylonglegs

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1