Oracle UNIX Data Time Issue/Question

I have a project where I need to display some data from a commercial software package. All of the tables except 1 store date values in NUMBER columns as UNIX time. I can convert these no problem, but one table has date values stored in FLOAT(126) columns and I cannot figure out how to convert them to get a valid, and accurate, date from them.
For example, the column contains the value 38513.5775115741 which in the application front end is displayed as Friday, June 10, 2005. Does anyone see a "formula" for this?
Maybe it's obvious and I've been trying too hard or looking at it too long for it to make sense to me....
Thanks in advance.

This looks close:
SQL > select to_char(date '1900-01-01'  + 38513.5775115741,'fmDay, Month dd, yyyy','nls_date_language=american') from dual
  2   /
TO_CHAR(DATE'1900-01-
Sunday, June 12, 2005
1 rij is geselecteerd.So maybe you should use 30-12-1899 or the number was really 38511.5775115741 instead of 38513.5775115741 ?
Regards,
Rob.

Similar Messages

  • Date Time issue factory unlocked iphone 4s

    I have a factory unlocked iphone 4s bought in Apple store US and currently in India. In Settings -> General -> Date & Time, I am setting "on" Set Automatically. After some time say 2-3 hours, the time automatically moves back by 30 minutes. In India there is no daylight savings. I am forced to set "off" for the "Set Automatically" option and then choose the timezone, time to keep it to the correct time. Anyone facing this issue ? By setting it to "Set Automatically" on, my understanding is it should sync with the mobile provider ("Airtel"). Is this a bug in iOS ?

    i have same problem i also went to apple store but the can not find any problem i don't know what to do ?
    i hop it's just a sofware problem

  • Date Modified Date/Time Issues on Files Exported to Excel

    Hello -
    I am using Crystal Reports XI, Release 2 and Visual Studio 2005 Enterprise Edition for my ASP.NET application.
    CrystalReports dll version : 11.5.3700.0
    .NET Framework 2.0.50727
    I use the CrystalDecisions.CrystalReports.Engine.ReportDocument to export a report to Excel (ExportFormatType.Excel).
    When you view the exported file in Excel 2007 (just open and close it, making no changes), the Date Modified date of the file changes to whatever date/time the file was last viewed.  I have also noticed this same behavior when exporting to Excel from Crystal, using a vendor desktop application that is written in C++ and uses Crystal XI.
    Does anyone else experience this issue and have a resolution?
    Edited by: Meg Thickman on Feb 3, 2009 8:59 AM

    Hi Meg,
    Just to clarify did you mean viewing the PDF?:
    "Why would/should the file system date change merely by viewing the report?"
    Our exported files are not linked to the master RPT file.
    As I indicated the XLS file is likely in an older format and Excel is detecting and updating something which the file system then detects a change and updates the date stamp. Or excel is writing something back to the file. Did you notice if the file size changed or possibly the byte hash?
    This is not something we are going to be able change. For compatability reasons we cannot stop Excel from updating the file.
    As a work around add the Data Date field to your reports and your auditors can use that as the reference. It will reflect the actual date and time the report was run. Or use Excel API's to update the file format once the report has been exported in your code. You may also want to check with Microsoft to see if it's an option in Excel not to update the format or possibly a registry key to disable the option.
    Thanks again
    Don

  • ASN Delivery Date/Time Issue

    Hi
    We are having issue wherein vendor navigates to Create ASN screen from DCM screen there he enters the ASN number, Shipping date and time, quantity and PO number etc. After this he presses the Check button for calculating delivery date and time. Here instead of adding number of hours mentioned in Means of Transport entry to Shipping time, system adds some fix number hours to MoT hours and calculates the delivery time.
    But if vendor directly goes to Create ASN screen then system only considers number of hours mentioned in MoT entry. I want to know from where system is adding this fix number of hours while scheduling delivery date/Time.
    Thanks

    Hi ,
    Thanks for the reply. But the issue is we are not passing any value to the Delivery Date Time Spot field (EKET-UZEIT). So by default when the BAPI_PO_CHANGE FM is called the value passed to this field is '000000'. It is that the system automatically changes the value to '00::0:1'. And it does so only if we execute the program without debugging the code. May be there might be a OSS note to update.
    Thanks
    Devarajan

  • Oracle Database : Date conversion issue between timezones

    Hi All,
    We are trying to convert date from Eurpoer/Amsterdam timezone to Australia/Sydnet timezone and extracting time out of it.
    We are facing issue related to incorrect timing after conversion.
    Please find below issue details,
    Environment
    Database: Oracle 10.2.0.4
    Machine: Linux RHEL 4
    Location: Amsterdam, Netherlands
    Issue: After converting date from Eurpoer/Amsterdam timezone to Australia/Sydnet timezone
    SELECT TO_CHAR (FROM_TZ (TO_TIMESTAMP ('201110201416', 'YYYYMMDDHH24MI'),
    DBTIMEZONE
    ) AT TIME ZONE 'Australia/Sydney', 'HH24:MI')
    FROM DUAL
    Output of above SQL is 22:16.
    Expected output is 23:16
    Database Timezone (DBTIMEZONE) is set to +02:00 (i.e. GMT + 2) (Europe/Amsterdam)
    If we convert date to Australia/Tasmania timezone then we get expected output i.e. 23:16.
    Question: Expected time for Australia/sydney is 23:16, but why Oracle database provides 22:16 as output.
    Please note that, Sydney and Tasmania comes under same timezone. Still we get different output for both the timezone.
    Oracle database considers GMT + 10 for Australia/sydney and GMT + 11 for Australia/Tasmania.
    If we want to use Australia/sydney then how should we get correct sydney time?
    Regards
    Shailendra

    I made a test and it showed when I omit TO_CHAR, both queries have the same result 11:15 PM. So it's TO_CHAR which is the 'culprit'. Since this is a globalization issue, you may repeat your question in this forum:
    Globalization Support
    (So one of the moderators moves the thread to this forum).
    Werner
    By the way my local timezone is Europe/Berlin, there should be no difference to Amsterdam.

  • Date/Time issue on Galaxy S3

    Just got my Galaxy two days ago to replace a HTC Rezond that had this same issue. The phone randomly goes back a day or two in time. Or just goes back 12 hours. It is causing my alarms to go off repeatedly for events that have expired, as well as missing current alarms for the actual day. In addition it messes with text, because of the date when you send a message it places it far up in the conversation history to match the date, so at times your not sure if the message was sent because you cant see it.
    Ex: My phone chimes to let me know i have a reminder. I check it and it is a reminder for Thursdays garbage running. Problem is its now Saturday, and my phone is traveling back in time. It does this randomly through out the day. 6 times yesterday. Is there any fix for this? Or is this a network issue?

        Hey Kayte2626,
    This sure is a bizzare occurance. I agree with demmo86rt that this is not a device issue. If you had the exact same issue with the Rezound and now with the Galaxy, there must be another issue.
    More than likely it is an application that you either have installed or have previously installed. I would try and master reset the phone (Settings>Backup and Reset>Factory Data Reset) and possibly even save what you can on the memory card and clean that up as well. There may have been a file on there that is causing the error (you can even try using the phone without the card to see if it works better).
    I have seen issues with Google Calendar as well that depending on how you enter the event (you choose the time zone when you are entering it) it may come up incorrectly. The reminder may have been set incorrectly with the time zone. Check to make sure. Please go into your calendar, press the menu button and select Settings. There should be Lock Time Zone. If that is checked your reminders may be coming up incorrectly.
    The only other connecting factor would be the SIM card between the two phones. So you can visit a local store and get that replaced to see if it will make a better connection with the network. Please let us know if you need anything further!
    Thanks!
    MichelleG_VZW
    Please follow us on Twitter @vzwsupport

  • Date & Time Issue

    I live in Egypt, I have this issue with my iphone4 recently, whenever i use the [Set Automatically] option for the Date and Time it Not the ring time, meaning for example now it's 6.20am, and the phone says it's 3.20pm, even when i turn it off and set it to Manually changed, and i set the right time, it still changes like a day after to what it's supposed to be if it was on Automatically Set which is far from right, what am i doing wrong?

    There is NO ONE from Apple here. Just user like you assisting other users. Sounds like you carrier is having time sync problems, since the phone gets its time from them.
    that being said, on the iPhone, check settings:general:date and time: and see if set automatically is on or off. Also try resetting the phone by holding down the home and power buttons and waiting until the apple appears (ignore the power off slider).

  • Save and Export Data format issue/question

    Hi all, I'm hoping someone can help me with what is probably a super-simple question. I have a group of people that will use some forms. They will all have Acrobat Pro so they can save and update the data in the forms.
    Here's my issue. I've tried binding both a sample XML as well as an XSD with the same results.
    1.) If I save the interactive PDF containing the data connection, users can type the information in the form, but fields that are "info only" and not bound to a particular node go away. The file does generate the correct XML.
    2.) If I delete the data connection (but keep the bindings), all the data stays in the form, but now my XML tags are intermixed with my fields and subforms and the xml looks pretty useless.
    So, here's my question, given that users will use Acro Pro 7, how can I ensure that all data stays in the form on save and writes out xml ignoring fields that are not bound to any nodes in the xml.
    Thanks for your help!
    l

    Grid Control records the Serve name in the Repository. So, you will have a problem with it.
    Search this forum for related threads. There are loads of information which may include workarounds on Grid control from one server to the other

  • Oracle SQL- Date/Time Help

    Hi I have a query that generates a roster report.
    The issue I am having is how do I create a query the runs off the start and end time.
    What I mean by this is, no matter what time of the day it is, I want the query to run based off of the between time of start and end, if that makes sense.
    Below is an example, notice the double entry, (and yes it is correct) the issue is that both these records get picked up, I would like my query to be based off what the time of day is.
    If it is 12PM, to send 1st record, if its 1:46 pm, to send 2nd record, not both.
    Any help... please
    Employee ID First Last Unit Abr Staffing Start Dt Staffing End DT wstat_name_ch wstat_type_no_in
    '015428'     Jason     Xi     'P23'     '2012-09-10 11:45:00.000'     '2012-09-11 11:45:00.000'     'Regular Duty'          3
    '015428'     Jason     Xi     'P77'     '2012-09-10 13:45:00.000'     '2012-09-11 11:45:00.000'     'Regular Duty'          1
    --My query for above statement.
    SELECT DBA.Resource_Master_Tbl.RscMaster_EmployeeID_Ch,
    DBA.Resource_Master_Tbl.RscMaster_FName_Ch, DBA.Resource_Master_Tbl.RscMaster_LName_Ch, DBA.unit_tbl.unit_abrv_ch,
    DBA.staffing_tbl.staffing_start_dt, DBA.staffing_tbl.staffing_end_dt, DBA.wstat_cde_tbl.wstat_name_ch, DBA.wstat_cde_tbl.wstat_abrv_ch,
    DBA.wstat_cde_tbl.wstat_type_no_in
    FROM DBA.resource_tbl, DBA.Resource_Master_Tbl, DBA.staffing_tbl, DBA.wstat_cde_tbl, DBA.position_tbl, DBA.unit_tbl
    WHERE DBA.resource_tbl.RscMaster_No_In = DBA.Resource_Master_Tbl.RscMaster_No_In AND DBA.resource_tbl.rsc_no_in = DBA.staffing_tbl.rsc_no_in AND
    DBA.staffing_tbl.wstat_no_in = DBA.wstat_cde_tbl.wstat_no_in AND DBA.staffing_tbl.pos_no_in = DBA.position_tbl.pos_no_in AND
    DBA.position_tbl.unit_no_in = DBA.unit_tbl.unit_no_in AND (DBA.staffing_tbl.staffing_start_dt <= NOW()) AND
    (DBA.staffing_tbl.staffing_end_dt >= NOW()) AND (DBA.wstat_cde_tbl.wstat_type_no_in = 1 OR
    DBA.wstat_cde_tbl.wstat_type_no_in = 3)
    GROUP BY DBA.Resource_Master_Tbl.RscMaster_EmployeeID_Ch, DBA.Resource_Master_Tbl.RscMaster_FName_Ch,
    DBA.Resource_Master_Tbl.RscMaster_LName_Ch, DBA.unit_tbl.unit_abrv_ch, DBA.wstat_cde_tbl.wstat_name_ch, DBA.wstat_cde_tbl.wstat_abrv_ch,
    DBA.staffing_tbl.staffing_start_dt, DBA.staffing_tbl.staffing_end_dt, DBA.wstat_cde_tbl.wstat_type_no_in
    ORDER BY DBA.Resource_Master_Tbl.RscMaster_FName_Ch

    958211 wrote:
    Hi I have a query that generates a roster report.
    The issue I am having is how do I create a query the runs off the start and end time.
    What I mean by this is, no matter what time of the day it is, I want the query to run based off of the between time of start and end, if that makes sense.
    Below is an example, notice the double entry, (and yes it is correct) the issue is that both these records get picked up, I would like my query to be based off what the time of day is.
    If it is 12PM, to send 1st record, if its 1:46 pm, to send 2nd record, not both.
    Any help... please
    Employee ID First Last Unit Abr Staffing Start Dt Staffing End DT wstat_name_ch wstat_type_no_in
    '015428'     Jason     Xi     'P23'     '2012-09-10 11:45:00.000'     '2012-09-11 11:45:00.000'     'Regular Duty'          3
    '015428'     Jason     Xi     'P77'     '2012-09-10 13:45:00.000'     '2012-09-11 11:45:00.000'     'Regular Duty'          1
    --My query for above statement.
    SELECT DBA.Resource_Master_Tbl.RscMaster_EmployeeID_Ch,
    DBA.Resource_Master_Tbl.RscMaster_FName_Ch, DBA.Resource_Master_Tbl.RscMaster_LName_Ch, DBA.unit_tbl.unit_abrv_ch,
    DBA.staffing_tbl.staffing_start_dt, DBA.staffing_tbl.staffing_end_dt, DBA.wstat_cde_tbl.wstat_name_ch, DBA.wstat_cde_tbl.wstat_abrv_ch,
    DBA.wstat_cde_tbl.wstat_type_no_in
    FROM DBA.resource_tbl, DBA.Resource_Master_Tbl, DBA.staffing_tbl, DBA.wstat_cde_tbl, DBA.position_tbl, DBA.unit_tbl
    WHERE DBA.resource_tbl.RscMaster_No_In = DBA.Resource_Master_Tbl.RscMaster_No_In AND DBA.resource_tbl.rsc_no_in = DBA.staffing_tbl.rsc_no_in AND
    DBA.staffing_tbl.wstat_no_in = DBA.wstat_cde_tbl.wstat_no_in AND DBA.staffing_tbl.pos_no_in = DBA.position_tbl.pos_no_in AND
    DBA.position_tbl.unit_no_in = DBA.unit_tbl.unit_no_in AND (DBA.staffing_tbl.staffing_start_dt <= NOW()) AND
    (DBA.staffing_tbl.staffing_end_dt >= NOW()) AND (DBA.wstat_cde_tbl.wstat_type_no_in = 1 OR
    DBA.wstat_cde_tbl.wstat_type_no_in = 3)
    GROUP BY DBA.Resource_Master_Tbl.RscMaster_EmployeeID_Ch, DBA.Resource_Master_Tbl.RscMaster_FName_Ch,
    DBA.Resource_Master_Tbl.RscMaster_LName_Ch, DBA.unit_tbl.unit_abrv_ch, DBA.wstat_cde_tbl.wstat_name_ch, DBA.wstat_cde_tbl.wstat_abrv_ch,
    DBA.staffing_tbl.staffing_start_dt, DBA.staffing_tbl.staffing_end_dt, DBA.wstat_cde_tbl.wstat_type_no_in
    ORDER BY DBA.Resource_Master_Tbl.RscMaster_FName_ChFor your own sanity, you should learn to format your code. For the sanity of those of whom you are requesting assistance, you should preserve that formatting with the use of the code tags
    SELECT
        DBA.Resource_Master_Tbl.RscMaster_EmployeeID_Ch,
        DBA.Resource_Master_Tbl.RscMaster_FName_Ch,
        DBA.Resource_Master_Tbl.RscMaster_LName_Ch,
        DBA.unit_tbl.unit_abrv_ch,
        DBA.staffing_tbl.staffing_start_dt,
        DBA.staffing_tbl.staffing_end_dt,
        DBA.wstat_cde_tbl.wstat_name_ch,
        DBA.wstat_cde_tbl.wstat_abrv_ch,
        DBA.wstat_cde_tbl.wstat_type_no_in
    FROM
        DBA.resource_tbl,
        DBA.Resource_Master_Tbl,
        DBA.staffing_tbl,
        DBA.wstat_cde_tbl,
        DBA.position_tbl,
        DBA.unit_tbl
    WHERE
        DBA.resource_tbl.RscMaster_No_In = DBA.Resource_Master_Tbl.RscMaster_No_In
    AND DBA.resource_tbl.rsc_no_in = DBA.staffing_tbl.rsc_no_in
    AND DBA.staffing_tbl.wstat_no_in = DBA.wstat_cde_tbl.wstat_no_in
    AND DBA.staffing_tbl.pos_no_in = DBA.position_tbl.pos_no_in
    AND DBA.position_tbl.unit_no_in = DBA.unit_tbl.unit_no_in
    AND (DBA.staffing_tbl.staffing_start_dt <= NOW())
    AND (DBA.staffing_tbl.staffing_end_dt >= NOW())
    AND (DBA.wstat_cde_tbl.wstat_type_no_in = 1
         OR
         DBA.wstat_cde_tbl.wstat_type_no_in = 3)
    GROUP BY
        DBA.Resource_Master_Tbl.RscMaster_EmployeeID_Ch,
        DBA.Resource_Master_Tbl.RscMaster_FName_Ch,
        DBA.Resource_Master_Tbl.RscMaster_LName_Ch,
        DBA.unit_tbl.unit_abrv_ch,
        DBA.wstat_cde_tbl.wstat_name_ch,
        DBA.wstat_cde_tbl.wstat_abrv_ch,
        DBA.staffing_tbl.staffing_start_dt,
        DBA.staffing_tbl.staffing_end_dt,
        DBA.wstat_cde_tbl.wstat_type_no_in
    ORDER BY
        DBA.Resource_Master_Tbl.RscMaster_FName_ChI'm not sure the above is even legal Oracle SQL. Are you sure you aren't taking code from some other rdbms?

  • Photo Date & Time Issues in Elements 12 Mobile Albums

    I have created and uploaded two new Mobile Albums to my adoberevel.com account.  I need to correct some of dates listed for several of the photos.  When I open the Mobile Albums in the Elements 12 Organizer and click on each photo to make the corrections, the changes that I make only last about 2 minutes.  After that the dates revert back to the original incorrect info.  Why is this happening?

    Anwesha,
    Thanks you for responding to my question.  My unlimited upload period ended
    in January and that was the last time that a photo uploaded.  I currently
    have several hundred photos remaining in my Mobile Albums inside of
    Elements 12 Organizer waiting to upload to Revel.  I have stopped and
    started the Adobe Revel Agent numerous times.  Basically nothing happens.
    I have also tried clicking on the Revel Agent icon.  When I do this it
    displays a message "Detecting Changes" and then a message telling me
    everything is up to date.
    When I log onto my Adobe Revel account online there is an option to add 50
    photos, but it appears that I must manual select them from my hard drive
    which bypasses the purpose of the Elements Organizer Mobile Albums.
    Do you have any other suggestions?
    Thanks,
    Robert
    On Tue, Mar 4, 2014 at 4:25 AM, Anwesha Dev Chaudhary <

  • Need help to resolve the Date time issue(Urgent)

    Hello All,
    I am running simple code as follows, to get the date and time. getting difference in 2 environment. Our both environment of AIX.
    import java.io.PrintStream;
    import java.util.Calendar;
    public class DateTest
    public DateTest()
    public static void main(String args[])
    java.util.Date now = Calendar.getInstance().getTime();
    System.out.println((new StringBuilder("Calendar.getInstance
    ().getTime():")).append(now).toString());
    Problematics environment gives following o/p
    bash-4.0$ java -cp . DateTest
    Calendar.getInstance().getTime():Wed Feb 03 00:59:40 EST 2010
    bash-4.0$ date
    Wed Feb  3 05:59:42 EST 2010
    bash-4.0$
    In another enviornment gives proepr o/p
    bash-4.0$ java -cp . DateTest
    Calendar.getInstance().getTime():Wed Feb 03 05:01:45 GMT-05:00 2010
    bash-4.0$ date
    Wed Feb 3 05:01:48 CST 2010
    can some one help me out in this...............

    What were the results of your investigations based on the pointers you got from [your earlier thread|http://forums.sun.com/thread.jspa?threadID=5423811] ?

  • Date Time issues

    In different places the OS seems to default to the date of 5/1/10 - I assume that is 5th Jan 2010. For instance, I have turned on parental controls. When I view the logs and want to show activity for 1 month or week and group by website, every entry appears to be for 5/1/10 - the time could be right since it does vary - althoygh I can't say how accurate it is.
    However, when I group by date, the websites are group correctly by date (I assume and anecdotally it appears righ).
    Again, just on Friday (Mar 19), Skype installed an update that also showed a date of 5/1/10.
    Every video that I download after recording on my Flip HD camcorder - when I navigate to the video in Finder, shows the date 5/1/10.
    Likewise every document in my info shows 5/1/10
    For the record, this Macbook was purchased in Oct '09 and has been current on all Snow Leopard updates - it is now at 10.6.2.
    HELP!
    This is

    Click here for latest update on firmwares,
    C | EH
    linksyshelp.blogspot.com

  • MSI FM2-A85XA-G65 system date & time issue

    Hello everyone!
    I have a MSI FM2-A85XA-G65 motherboard with an AMD 5800K processor. The date and time won't save in the bios. Sometimes it will sometimes it won't. The system will save for a few reboots, Then when I again enter the bios a different date and time will appear.
    I have reset the cmos and have removed the battery with the same results. Other than that the board appears fine. Any help or ideas?

    It appears to be a Linux UTC UEFI coordinated thing. So I think all is well. The correct time is on the desktop after all and all other settings remain.

  • Update date/time in UNIX timestamp format

    The datetime in my Oracle DB is being stored in UNIX Date Time format.
    Is there a way I can set the date/time using an UPDATE statement in such a case.
    for eg:
    select id, creation_date, expiration_date from skel;
    id creation_date expiration_date
    400019 1213726470     
    400020 1213733052     
    400005 1210867973     
    400018 1213723608     
    I am looking to set the expiration date as creation_date + 1 year.
    Could you please advise?

    I am looking to update the value in the field. The values will still be in UNIX date/time format.Yes, but still: instead of continuing converting to Oracle dates and Unix dates, why not just store dates the way the datebase can deal with it the best?
    You're probably storing your UNIX date/time formatted dates in the database as NUMBERS.
    That is a great loss of lots of built-in date functionality Oracle Database provides.
    If you insist on staying on that road, then explore my previous links, you will find your answer:
    Convert epoch number to date, do arithmatic and convert the result back to epoch number.
    That is overkill.
    It won't work/scale/perform/whatever in the end. It is a bad approach.
    So, please reconsider this:
    Why are you storing dates as numbers?
    Convert those numbers to dates once, and be done with it for ever after and benefit from all the builtin date-functionality Oracle database comes with, or convince us that you really have a valid reason to store dates in UNIX date/time format into an Oracle Database.
    and my last date was...uuhhmm... never mind ;)

  • Converting unix data to normal date time.

    Post Author: Keshavan
    CA Forum: Formula
    Hi,
    Can anyone help me out on how to convert the unix date time format to normal date time? I should convert this unix data to proper time format also with GMT+5:30 hrs. Please help me to do the same.
    Thanks in advance,
    Keshavan.

    Post Author: V361
    CA Forum: Formula
    Could you provide some samples, I am not sure what a Unix data time looks like.
    Unix date that displays:
    Date you want to display:

Maybe you are looking for

  • How to display the JSP output in the same page....

    im new to JSP..... can anyone tell me how to display the output of a particular JSP page in the same page itself...... if anyone could send a small sample code it will be very useful for me.... thanks in advance regds Krish......

  • Errors when entering responses manually

    I have been encountering an error, when manually entering responses to an existing (and open) Form in Adobe FormCentral. We are currently collecting registrations for an annual event, and the majority of people register online (via the form). However

  • AVC to MP4 converter

    I need to convert AVC files to MP4 files. Does anyone know of the easiset way to do this?

  • Getting table name from a query

    Hi, I'm trying to get the table name from my sql query My code is as follows; ResultSetMetaData metadata = rs.getMetaData(); for (int i = 1; i < metadata.getColumnCount(); i++) System.out.println(metadata.getTableName(i)); I just get a blank output.

  • Database query adapter in idm.

    Hi all, Idm uses the Database table adapter manages user accounts stored in one database-table. The question is (and this may not be what idm is supposed to do): Is there any adapter which can simple query fields in a specified table in a db, and ret