Minute of day conversion to AM/PM 12 hour time

Greetings,
Given a particular minute of day (1440 minutes per day, Example: '125' would = 2:05 AM) is there a way to directly convert the selected time field to an AM/PM time?
I was thinking along the lines of this:
TO_CHAR ROUND(($minute_of_day/60), 0) --this would get the hour
TO_CHAR ROUND(($minute_of_day%60), 0) -- this would get the minute
Now the challenge is how can I run a TO_DATE function on the appended result combination of both of the TO_CHAR functions?
This doesn't seem to work:
TO_DATE('TO_CHAR ROUND(($minute_of_day/60), 0):TO_CHAR ROUND(($minute_of_day%60), 0)' HH12:MI)
Do I have the right idea or is there a better way to do this?
Thanks in advance!

Jens solution is fine...so deleted mine.Message was edited by:
Jameel

Similar Messages

  • Convert :-  Minutes to Days:Hours:Minutes

    Hi Friends ,
    I want to convert the time value from MINUTE to  HH : MM : SS  
    I mean in input i have to pass  200 Minutes and in Output i want to get the no of hr and minutes in the format  03 : 20  ( HH:MM) . I have used the FM "CONVERSION_EXIT_SDURA_OUTPUT" for this .
    This works fine for  time input values upto 5 digits  like  ( 20000 minutes) =  333:20 (HH:MM) ,
    when the input value is more than 5 digits , ex - 200000 this FM does not work .
    Is there any FM where i can get the conversion from MINUTE to HH :MM:SS  or from Minutes to DAYS :HPURS:MINUTES .
    I have searched SDN , but i dint get the exact FM which i want ,
    If any body has any idea on the same please guide me on the same .
    Regards
    Parbhudutta

    Thanks all for all of your valuable inputs .
    IBy using FM : MONI_TIME_CONVERT  , i am able to get  HH:MM:SS  format data by giving input as seconds .
    But the issues i have is , i have  data as input in seconds which is noear to a 10 digit number like
    200000000 seconds , which does not work  for this FM .
    I have input data in MINUTES which is near to 10 digit , exmp -  239879798 minutes . So i want to convert this no to ( DAYS : HOURS : MINUTES : SECONDS )
    Other FMs that has been given by you guys i have checked but i am not able to get exactly what i want .
    Anyway thanks again .
    Reagards
    Prabhudutta

  • I would like to limit the access to my Macbook Pro to 15 minutes a day for my kids.

    Hello
    I would like to limit the access to my computer for my daughter to 15 minutes a day. It seems that parental control cannot have anything lower than 30 minutes.
    Any idea how we can bring that down to 15 min?
    Thanks

    Oh, and get out the whip while you're at it!
    Just kidding - I've no children so I don't use parental controls - but 15 minutes? That's just cruel!
    Clinton

  • Date to Elapsed Days Conversion

    Hello Guys
    I need guidance in Date to Days Conversion
    Lets Suppose i have a string as following
    var time:String = "2009-09-01"
    and as today is 5
    so i want a value like
    "4 Days Ago"
    How could i convert this date to days?
    Thanks in advance

    Hi,
    First compare this with previous records, i think there is some wrong input, for this type of fiscal Period u can use PERI7 Conversion Routine.
    http://help.sap.com/saphelp_nw04/helpdata/en/3f/e2e32d7e612d4eb4f610b2674af40b/content.htm
    Hope it helps.
    Regards
    Siddhu

  • Equium L20-198 loses time - about 7 minutes each day

    The clock in my L20-198 system tray is losing about 7 minutes each day.
    I can update manually through the "Adjust Date/Time" right click function but have to remember to do this every time I boot up and, as I often forget I rapidly become 20-30 minutes out of synch.
    Any ideas what is wrong and how to correct it?
    Do I need new CMOS battery?
    If so, how do I access it?

    Hi
    >Do I need new CMOS battery?
    Maybe
    But firstly it would be interesting to know if the same time/date appears in BIOS.
    According to your message you change the time always in Windows OS.
    Please check BIOS, correct the time and save the BIOS changes.
    May I ask you when did you notice this issue?
    Possibly it happens due to the older CMOS battery
    I would also try to recharge the CMOS battery.
    Connect the L20 to AC adaptor a leave it for about 18-20 hours.
    During this time the main battery will be charged and then the CMOS battery.

  • Why are my texts sometimes blue(iPhone txt) and sometimes green(txt msg) within minutes of a conversation?

    why are my texts sometimes blue(iPhone txt) and sometimes green(txt msg) within minutes of a conversation?

    If the iPhone can't send the message as an iMessage (blue) it will instead send it as an SMS message (green).

  • I want to overlay elapsed time for 30 hour time lapse onto 30 minute video.

    Title says it all.  I have 92k pictures that I've put into an ~30 minute time lapse video.  The pictures came from about 30 hours of recording.  I would like to add a clock to show the time on to the video.  I have sequences broken up by hours of the day, so I could create one hour segments very easily.
    I've tried playing around with the timecode filter, but it doesn't do what I want it to (or I can't figure how to make it do what I want it to do).
    Thanks for the help.

    There isn't a built in clock effect in PrPro... timecode is the closest to it but probably won't work for what you want. After Effects may have one, but I'm not sure. There are probably some third party ones but I don't know of any off hand. Otherwise you may have to build and animate it yourself using titles or something like that. Again AE may help with that but I'm not certain. The time lapse part should be pretty easy. You can import them as image sequences if they're sequentially named, or else import them with a 1 sec default duration and add them to an appropriately sized sequence using automate to sequence or just by dragging and dropping.

  • Foreign currency conversion not picking up rate or time period

    I am running the standard FX conversion (standard stored procedure - fxtrans.lgx) on SAP BPC MS version 7.5 , but everytime I run the package, even though I choose a particular day,  it seems to run for multiple time periods.
    In the formula log  I get more than 50 of the following:
    10000400 - 4 rows calculated
    10000400 - 0 rows updated
    10000400 is the TIMEID for my currency conversion.
    Also, when I look at the result, even though I have entered 1 as my conversion fator I get a multiple of 18.  I tried to change the conversion factor, but no matter what I do for no matter what entity and no matter what LC I always end up with a multiple of 18.
    Any ideas for me?
    Thanks

    Hi,
    This sounds strange. Can you post your script logic file and a small extract from your time dimension please?
    Tom.

  • Cannot turn on "Show the day of the week" option in Date & Time

    OS X Lion turns "Show the day of the week" option off each time I open that preference pane and after every reboot. My region in Formats tab of Language & Text preference pane is set to "Russia (Russian)". I've noticed that the problem doesn't appear when region is set to US (I didn't try others). Is there any known workaround, except changing my region preference?

    Me too.
    And I have a workaround, until Фззду fixes it finally:
    1) Go to the ~/Library/Preferences, locate a file named com.apple.menuextra.clock.plist, open it with Plist editor (comes with XCode) or just with TextEdit.
    2) There's DateFormat key in it, change it to "EEE H:mm", save the file.
    3) Now Cmd-I (right click - Get info) on that file in Finder, and check option named "Locked" ("Защита").
    System Preferences' Date & Time pane sets the aforementioned DateFormat to "ccc H:mm" when you tick the "Show the day of the week" option, while in Russian locale. And in English it becomes "EEE H:mm". The problem is that Sys.pref and even SystemUIServer (that shows the menu) processes somehow do not like the former value and erase it. After every relaunch of SystemUIServer (after reboot or being killed) tries to change "EEE" to "ccc" again (which would be cleared to nothing next time), that is why you have to lock the plist file.

  • My wifi goes down at least once a day and I have to unplug the time capsule and reboot it and then it works fine.  Any idea why this is happening/what I can do to fix it?

    My wifi goes down at least once a day and I have to unplug the time capsule and reboot it and then it works fine.  Any idea why this is happening/what I can do to fix it?

    I was having this problem while still using Mavericks -- it started after a Mavericks update last spring.  During the initial Yosemite beta runs over the summer, it seemed to be fixed, but after the official launch in October, I had all sorts of problems keeping connected.  Its gotten a little better, but still happens to at least one of my devices every day.  Weird that we still cannot figure out why the connection keeps dropping on some devices, but not others, and then the next day, one of the devices that didn't disconnect the previous day will disconnect, but the ones that did disconnect, stay connected.  It's just sloppy, poorly written software for technology that isn't working the way it should.  If you turn off Continuity and Handoff on all your devices, you will probably see that everything stays connected.  With those turned off on all devices, TC stayed connected to everything for over a month.  The day I turned Continuity back on, all the problems started again.  It had something to do with the bluetooth version being used, the wifi routine, and Apple's AirPlay technology not quite getting along with each other.

  • I downloaded the Final Cut Pro X trial but my movie is 17 minutes long but it will only Share to Quick time 6:55 minutes. How do I fix this and export the full 17 minutes?

    I downloaded the Final Cut Pro X trial but my movie is 17 minutes long but it will only Share to Quick time 6:55 minutes. How do I fix this and export the full 17 minutes?

    Thank You. Im trying to export everything. I pressed command A and then did the Share button. Ill attach the screenshot please let me know if I need to change something.

  • I rented a movie on my iPad. It downloaded fine but would only play 36 minutes, 5 seconds worth of the movie; although the time kept running for the length of the movie. Can this be fixed or do I need to get a refund?

    I rented a movie on my iPad. It downloaded fine but would only play 36 minutes, 5 seconds worth of the movie; although the time kept running for the length of the movie. Can this be fixed or do I need to get a refund?

    You can try a rest:
    Reset iPad:  Press and hold the On/Off Sleep/Wake button and the Home
    button at the same time for at least ten seconds, until the Apple logo appears.
    - If that does work, contact iTunes and request a redownload.  You can ask for a refund though.

  • My backup to Time Capsule is taking over 4 million days. How can I shorten the time? I am not able to connect through ethernet. How do I fix this?

    My backup to Time Capsule is taking over 4 million days. How can I shorten the time? I am not able to connect through ethernet. How do I fix this?
    Not only that but my Mac Pro keep running and does not stop, my Address book has a blue light under it but wont open, the light for my monitor in the bottom right corner wont turn on or off. Please need help...

    It sounds like there is an issue with the Mac itself.
    Use the verify disk A5 in troubleshooting.
    http://pondini.org/TM/Troubleshooting.html
    Even if you cannot connect by ethernet, at current location.. you can simply disconnect the TC from the network and bring it to the Mac and plug it in by ethernet. The TC can be reset if you haven't got a suitable current setup (save previous setup before you change it) and run just as backup device.. do the backup and then return it to the network.
    If this is just a standard incremental backup.. then something has broken. The issue is not the TC pe se but failure in hardware somewhere.

  • After I hv upgraded os 6 on my iPhone 4, iPhone hung up at least one per day. After u press "End" 2 times( i used to do this in the old os) or when u slide to unlock - the screen suddenly enlarge . I need to reset the phone whenever this happen. Pls help

    After I hv upgraded os 6 on my iPhone 4, iPhone hung up at least one per day. After u press "End" 2 times at fast speed ( i used to do this in the old os without problem) or when u slide to unlock - the screen suddenly enlarge . I need to reset the phone whenever this happen. Pls help

    I Have fumbled all day to this resolved, I'll run the battery down and see what happens afterwards. This is not good !

  • Automatically switches me to different apple store! I am using UAE store , but now it says I am using Singapore! But when I go to apple store and change it to UAE again , it charges 1 dhs and it work for the day. It behaves differently the next time ?

    Automatically switches me to different apple store! I am using UAE store , but now it says I am using Singapore! But when I go to apple store and change it to UAE again , it charges 1 dhs and it work for the day. It behaves differently the next time ?

    Where did you buy the iPad and register your iTunes account? What country is the credit card you used when you set up your iTunes account?  Where are you now?
     Cheers, Tom

Maybe you are looking for