How can I convert a part of the day at once?

How to convert a part of the day in one hour, without dividing and modding the number myself?

For example, I calculated the noon solar UTC for etre.733409047. Adding the date gives the correct answer:

SQL > SELECT TO_DATE (' 01 / 01/2012 ', ' DD/MM/YYYY') +.733409047 FROM Dual;

TO_DATE (' 01 / 01/2012 ',)
-------------------
01/01/2012-17:36:07

A few questions to really understand this.

.733409047 is implicitly converted? If so, what kind of data?
If I want to HH should be converted to a date, then TO_CHAR? Or the comma directly convert?

Currently, I'm trying to understand the INTERVAL.

SQL > select interval '. 5' double day.
Select the interval '. 5' double day
*
ERROR on line 1:
ORA-01867: the interval is invalid

So I'm obviously interpreting. Can it be used here?

Hello

Brian Tkatch wrote:
How to convert a part of the day in one hour, without dividing and modding the number myself?

For example, I calculated the noon solar UTC for etre.733409047. Adding the date gives the correct answer:

SQL > SELECT TO_DATE (' 01 / 01/2012 ', ' DD/MM/YYYY') +.733409047 FROM Dual;

TO_DATE (' 01 / 01/2012 ',)
-------------------
01/01/2012-17:36:07

A few questions to really understand this.

.733409047 is implicitly converted? If so, what kind of data?

No, there is no conversion going on here, just the Arithmetic of Date .
In Oracle, if d is a DATE and n is a NUMBER (not necessarily a whole and not necessarily positive), j + n is the DATE is n days later than d.

If I want to HH should be converted to a date, then TO_CHAR? Or the comma directly convert?

Sorry, I don't understand. Do you mean you want to do something like arithmetic dates, but instead to use a number comme.733409047 (which means environ.73 of a day), you want to pass a string as 17: 36:07' (i.e. 17 hours, 36 minutes and 7 seconds)? If so, INTERVAL DAY TO SECOND is probably your best choice. (It seems that you are already thinking in this direction.)

Currently, I'm trying to understand the INTERVAL.

SQL > select interval '. 5' double day.
Select the interval '. 5' double day
*
ERROR on line 1:
ORA-01867: the interval is invalid

So I'm obviously interpreting. Can it be used here?

You can only use integers like that. If you want any number, use arithmetic to date to add (or subtract) a DATE or use NUMTIDSINTERVAL to produce an INTERVAL DAY TO SECOND:

SELECT     NUMTODSINTERVAL (.733409047, 'DAY')     AS intrvl
FROM     dual;

Output:

INTRVL
------------------------------------------------
+000000000 17:36:06.541660800

I hope that answers your question.
If not, post a small example data (CREATE TABLE and INSERT statements), maybe 5 rows and also post the results desired from these data.
Explain, using specific examples, how you get these results from these data.
Always tell what version of Oracle you are using.

Tags: Database

Similar Questions

  • How can I convert my friends to the Game Center on Facebook?

    With the new iOS for my iPod & iPad, I lost all my friends Game Center.  I have two games that I play as I would like.  How can I convert my friends to the Game Center for Facebook friends?

    You do not have. They have two different systems. What you need to do is to start on. For example, if your game has a forum or support page, they may have a way for people to communicate to a friend. Or if they have a facebook page, they probably have a system for "I want to make friends."

    It is now up to the games themselves to put in place the means to a friend using iMessage. You will need to wait for your game to do.

  • How can I shorten a part of the animation?

    I'm kinda a noob Flash, so apologies if the answer to that is blinding!

    In Flash CS6, I need to shorten a time line animation article. Y at - it an option to do this?

    The film is set to run at 30 frames per second, but increase the pace is not the solution.

    For example, a section of the animation runs currently 5 seconds (that is to say, is long of 150 executives) and contains a large number of interpolations.

    How can I shorten it so that the entire sequence runs in 4 seconds (that is to say, long 120 executives)?

    Thank you.

    If they are interpolations of movement, you can grab the end of each one and drag it to be posted on the 120 frame. Other keyframes will scale accordingly.

    If they are classic tweens, you can remove some of the difference images to gather images-keys more closely. It may take some time!

  • How can I knockout is part of the logo

    I tried to knock out the part of a shape of logo for a business card, but I feel no good results.

    When I search on how to do it, I noticed several ways to achieve this. What is the best (simplest) way?

    Those are the lines of features, right?

    What you can do is:

    -Select all the white lines.

    -Object > path > course Outline

    -Pathfinder palette: unite (the top left button)

    -Select all and object > compound path > make

    This procedure will work if you want to hit out of shape like the rectangle. It won't work if you want to hit on an image

  • How can we reomove inner part of the polygon 2 polygons merged

    Hello

    When im with 2 polygons to form a simple polygon, I can see there are a few small lines and resulted in points within the polygon.

    So my question is, is there space functions that can help remove the inner lines. I mean, I want only the ploygon limits resulted.

    I searched a lot and did not find any bad thing to that.

    Please let me know if anyone of you knows about it.

    Kind regards
    Kiran kristelle

    If all the extraneous elements are entirely contained within the polygon, then you can use sdo_util.extract to get the 1st element, which in this case will be the outer limit of the polygon.

  • How can I change some parts of the audio?

    I want to change the volume of certain parts of my audio. lower and raise the different parts of my audio, but not completely remove audio or spitting it upward. Someone who can help me?

    Hello Zach,

    Hearing has 2 modes of editing: waveform and multitrack.  Waveform is a single file editor, generally used to modify and overwrite the original file or convert them to a new file when the installation is complete.  Multitrack is a nondestructive environment where present you several files on a timeline.

    To adjust the level of volume in wave form, you can select the region that you want to set up and use the screen volume control button to change the amplitude.

    You can also use the effect of Gain envelope for waveform of keyframe volume changes, you want to do.  Add points on the line and adjust them upward or down, get an overview and once satisfied, click on apply in the window of the effect:

    If you add an item to a multitrack Session, you can use the clip or track volume in the same envelopes to automate volume changes.  The difference is that this does NOT replace the original file.  Once satisfied, when you create a mix makes a new audio in the file with the changes made.  You can also return to the session and make changes later, a new mix of rendering as necessary.

    Hope that helps!

  • How can I reinstall a part of the Uninstall list?

    I want to reinstall something that I accidentally put in the Uninstall list. How to do this, thank you

    Hello

    Who Uninstall list are you referring to?

    If you have uninstalled the program or application from the Control Panel /Add / Remove Programs then the only way to reuse this request is to reinstall and use it.

  • When I download programs from the internet, they appear just in the form of collections of files TextEditor. How can I convert them into a program.

    When I download programs from the internet, they appear just in the form of collections of files TextEditor. How can I convert them into a program.

    What kind of programs? When you download from? How do download you them?

  • I have Pages version 5.6.1. How can I convert a document that I create in this version to an older version (Maverick) of Pages? I created documents in version 5.6.1 and I need for my colleague to open documents, but it has the ol

    I have Pages version 5.6.1. How can I convert a document that I create in this version to an older version (Maverick) of Pages? I created documents in version 5.6.1 and I need for my colleague to be able to open the documents, but it has the old version. I already clicked on 'option' and select 'duplicate' to get the prompt "save under". However, when I do this it does not to choose another version.

    To create a document that can be opened with previous versions of Pages, open the document in Pages, and go to the menu file (in the menu bar)-> export as-> Pages ' 09. Save the file and send it to your friend, if she can open it without any problem.

  • How can I convert 2400 (0 x 960) in 60 and 9 where 9 and 60 the fourth and fifth elements of an array?

    How can I convert 2400 (0 x 960) in 60 and 9 where 9 and 60 the fourth and fifth elements of an array of 8 elements?

    Thank you.

    Simplified version.

  • How can I convert a wmv of media player in a jpg file so that I can enhanse the photo

    How can I convert a wmv of media player in a jpg file so that I can enhanse the photo.

    can I make the brighter picture of media player photo.

    WMV is a video file... JPG is a file photo...

    If you want to brighten up the. WMV video file... import into
    Movie Maker / slide on the timeline and add brightness
    Increase the effect in the file... you can add up to 6 instances
    an effect.

    Then save your changes as follows:

    To save in a .wmv movie file...
    Type of... CTRL + P (or go to...) File / save movie file)
    to open the wizard movie recording.
    Choose... My computer.
    Next /.
    Enter a name and a location.
    Next /.
    ICT... "Best quality for my computer.
    Next /.
    Wait while the movie is saved.
    Finishing...

  • BlackBerry Smartphones how can I convert save the file into something readable!

    Using the Desktop Manager that I created a .ipd backup file.

    Now... How can I convert these data into something I can easily recognize?

    Oops - I forgot that the app... JSanders thanks!

  • How can I convert my user standard ac the administrator account

    my administrative ac transferred to standard acre now I have no privileges to add or remove the softwareor programe. He asked me to provide the administrative password. well kindly help me how can I convert my standard user in adminstrater ac ac

    my administrative ac transferred to standard acre now I have no privileges to add or remove the softwareor programe. He asked me to provide the administrative password. well kindly help me how can I convert my standard user in adminstrater ac ac

    Here you go:

    1. Set your BIOS so that it uses the DVD drive as its primary boot device.
    2. Start the computer with your Windows 7 repair CD.
    3. Press a key when prompted to boot from the DVD.
    4. Select 'PC Repair' in the menu.
    5. Select 'Repair' when prompted.
    6. When you are prompted, select System Restore.
    7. Set Windows to a point before you demoted the admin account.
    8. Plan ahead a little and create, test and document an alternative admin account, same as you have a spare emergency House key. This will save you a lot of trouble.
  • If my word document is Ko 106480 how can I convert it into a PDF file if it exceeds the limit of 100 MB

    If my word document is 106 480 Ko how can I convert it into a PDF file if it exceeds the limit of 100 MB

    Get Acrobat and you won't have these limitations.

  • How can I convert .ai files in jpeg format?  It seems that I am only able to get the .ai files and my Adobe Photo Elements program does not recognize the file.

    How can I convert .ai files in jpeg format?  It seems that I am only able to get the .ai files and my Adobe Photo Elements program does not recognize the file.

    I want to continue my membership with Adobe, however, not if it requires some additional software purchase.

    For .ai files, you will need to use or know someone who uses Illustrator or another program compatible .ai to convert. If you access a page of image details before license you can see the file type.

Maybe you are looking for