Unix time conversion

hi
i have unixtime format 1075329297.572 how do i store it in database.that is with what datatype.i tried to store unixtime using date, timestamp but it does not work.
but with varchar2 it works. but ifi store with varchar2 i cant perform conversion functions.
i want to convert unix time into yyyy-dd-mm hh-mm-ss format.
help me out
thanks in advance

how to convert julian Date  to timestamp datatype in Oracle

Similar Messages

  • Conversion of Unix time to GMT

    Does anyone know of a way in which I can turn a date in unix time (no. of seconds since 1st Jan 1970) into a standard GMT format?
    Any help would be greatly appreciated.
    Thanks!

    To use GMT time, use TimeZone:
    * UnixTime.java
    * Created on February 16, 2006, 11:20 AM
    * @author Charles Li
    import java.util.Calendar;
    import java.util.GregorianCalendar;
    import java.util.TimeZone;
    public class UnixTime {
        public static void main(String[] args) {
            GregorianCalendar gc = new GregorianCalendar(TimeZone.getTimeZone("GMT+0"));
            long unixTime = 1234567890L; // unix time is second
            long ONE_SECOND = 1000L; // 1 second = 1000 millisecond
            gc.setTimeInMillis(unixTime*ONE_SECOND);
            // 2009/2/13
            System.out.println("Year: " + gc.get(Calendar.YEAR));
            System.out.println("Month: " + (gc.get(Calendar.MONTH)+1));
            System.out.println("Day: " + gc.get(Calendar.DAY_OF_MONTH));
    }

  • UNIX time to Oracle time

    Hallo,
    I am acquiring the data for my reports in a UNIX evironment using embedded SQL.
    Therefore I am searching for a function that converts the UNIX time to ORACLE time. Currently I am doing the conversion via a string representation but I would prefer a function that does it on a binary level.
    Thanks a lot - Ulrich

    maybe (using the link provided) ;)
    select case when :unixts between -2114380800 and 2145916799
                then TO_DATE('19700101000000','YYYYMMDDHH24MISS') + NUMTODSINTERVAL(:unixts,'SECOND')
           end the_date
      from dualRegards
    Etbin

  • Can I have a Face Time conversation between two Apple devices using the same Apple ID?

    Can I have a Face Time conversation between two Apple devices using the same Apple ID?

    Yes, you can, but the two devices can't have the same e mail address associated with both.  Each, device needs its own unique e mail ADR.  In your case, the iPod can call your iPhone if you use the phone number, but the iPhone can not call your iPod because it must use the e mail address, and if the email address is the same on both, the iPhone will think it's calling itself, so the call will not go through.

  • How to convert a numeric field representing UNIX time to a standard report

    Looking for some help on the creation of a formula that will allow me to convert a numeric string which represent Unix time to a standard date format.
    Sample string value "1199149200", Jan 1 2008, 1 AM

    Hi,
    Use the DateAdd formula convert Unix epoch to normal datetime (Unix epoch = number of seconds that have elapsed since January 1, 1970).
    DateAdd("s", 1199149200, datetime("01/01/1970 00:00:00"))
    Cheers,
    Fritz

  • Error while loading : Time conversion from 0CALDAY to 0FISCPER

    Hi ,
           I get the following error when loading to an ODs .
    My 0FISCPER is mapped to one of the date fields from the extractor (Document date) and also Have 0FISCVARNT as part of data fields  .
    " Time conversion from 0CALDAY to 0FISCPER (fiscal year ) failed with value 20060405 " .
    thanks .

    Hello CG
    Please refere this forum
    Time conversion problem
    Thanks
    Chandran

  • Convert Epoch (UNIX) time to a readable timestamp

    Post Author: uberwolfe
    CA Forum: Formula
    I am pulling data from a MS SQL 2000 database (for you phone phreaks out there, I am going against the Cisco CallManager CDR database).  The datetime stamp is in there as UNIX time.  I need to convert and split this into two fields, a date field and a time field.  As I have inherited this and don't know a lot about Crystal Reports I am at a loss.  Currently the report I have (that a developer who is no longer with us wrote) has two formula's.  The formulas are as follows: Time:CTime ({vw_OCESelectionDetail.dateTimeConnect}/8640025569) Date:CDate ({vw_OCESelectionDetail.dateTimeConnect}/8640025569) When the time is returned, it looks to be in GMT.  What type of formula would I need to have to convert the time to the correct time within the timezone I am in.  Any help would be appreciated.  

    Post Author: uberwolfe
    CA Forum: Formula
    Gave me an error stating the year needed to be between 1 and 9999.  I modified it as such CTime (({vw_OCESelectionDetail.dateTimeConnect} - 21600) / 86400 + 25569)
    CDate (({vw_OCESelectionDetail.dateTimeConnect} - 21600) / 86400 + 25569)  Running it right now, but it takes a while.  Let's see what happens.  Will post in a bit. 

  • Date/time conversion from UTC to CET

    Hello,
    Jjust a little question to our SAP BI community!
    Is there a BI function/ggod way that converts a (datetime) string DDMMYYYYHH:MM:SS  in UTC time zone into a string DDMMYYYYHH:MM:SS in  CET timezone ?
    We receive this string in input in a flat file and need it to convert from UTC to CET.
    Or do you know any way to convert a date/time from IUTC to CET, eveen using an ABAP function?
    Thanks a lot,
    Matthieu

    Hi,
    Check this thread for time conversion from UTC to Local time
    [ABAP statement for converting UTC date/ time to local date/time],
    Regards,
    Daya Sagar

  • Automatic time conversion is not possible

    Hi Friends,
    I have a problem in Transformation Level when i am mapping "automatic time conversion is not possible for source field FISCPER to 0FISCYEAR,FISCPER3".can any one help me in this issue.
    Thanks
    Narasimha

    Yes if it was date filed then it would have been possible.If you are trying to derive the fiscal year between datasource and cube then you can get it with the help of simple filed level routine.
    Map your fiscper field from source to fiscal year--Rule type Routine.
    RESULT = SOURCE_FIELDS-(Technical name of source field)+0(4).
    For Posting period
    Map your fiscper field from source to fiscper3 year--Rule type Routine.
    RESULT = SOURCE_FIELDS-(Technical name of source field)+4(3).
    This will give you the required output.
    Regards,
    AL

  • Time required in Unix time stamp format

    Hello ,
    I am new to java as I have recently started working on it.
    My requirement is to get current system date in Unix format which is integer(32 bit value) .Is there any class in java which will allow me to do this operation.
    Regards
    Vijay

    System.currentTimeMillis() returns a long (64bit integer) containing the number of milliseconds since Jan 01 1970. The UNIX time format is the number of seconds since Jan 01 1970, so all you need to do is get the time using System.currentTimeMillis(), divide by 1000, and cast it to an int (32 bit integer).

  • Convert unix time stamp to readable time with daylight saving

    Hello NG,
    I have a table that has a column containing time stamps in the unix time format (seconds since 1970). If I show these times to the user, they should be converted to some readable format. I'm using the following sql code as an example:
    select to_char(
    to_timestamp_tz(
    to_char(
    to_date('01011970','ddmmyyyy') + 1/24/60/60 * 1086508800,
    'YYYY-MM-DD HH24:MI:SS')||' Europe/Warsaw',
    'YYYY-MM-DD HH24:MI:SS TZR'),
    'YYYY-MM-DD HH24:MI:SS TZH:TZM')
    from dual;
    The output I get is the following:
    TO_CHAR(TO_TIMESTAMP_TZ(TO
    2004-06-06 08:00:00 +02:00
    The output is right, but the format I need is the following:
    2004-06-06 10:00:00
    How do I have to alter the statement to get the correct result (add the two hours of the timezone and dst to the time)?
    Any help is appreciated.
    Regards,
    Mario Freimann

    That's the strange thin ... this timezone doesn't exist.
    Running the query I get the error message
    ORA-01882: timezone-region not found
    The results of the statement
    select * from V$TIMEZONE_NAMES;
    for Europe are:
    TZNAME TZABBREV
    Europe/Dublin LMT
    Europe/Dublin DMT
    Europe/Dublin IST
    Europe/Dublin GMT
    Europe/Dublin BST
    Europe/Istanbul LMT
    Europe/Istanbul IMT
    Europe/Istanbul EET
    Europe/Istanbul EEST
    Europe/Istanbul TRST
    Europe/Istanbul TRT
    Europe/Lisbon LMT
    Europe/Lisbon WET
    Europe/Lisbon WEST
    Europe/Lisbon WEMT
    Europe/Lisbon CET
    Europe/Lisbon CEST
    Europe/London LMT
    Europe/London GMT
    Europe/London BST
    Europe/London BDST
    Europe/Moscow LMT
    Europe/Moscow MMT
    Europe/Moscow MST
    Europe/Moscow MDST
    Europe/Moscow S
    Europe/Moscow MSD
    Europe/Moscow MSK
    Europe/Moscow EET
    Europe/Moscow EEST
    Europe/Warsaw LMT
    Europe/Warsaw WMT
    Europe/Warsaw CET
    Europe/Warsaw CEST
    Europe/Warsaw EET
    Possibly something is not right with my installation (Oracle 9.2.0.1.0) ...

  • Unix Time Stamp to Date for display

    Post Author: merph
    CA Forum: Formula
    I need to convert a unix time stamp to a readable date for a report. Does anyone outthere have a good formula for this?
    Thanks
    Merph

    Post Author: V361
    CA Forum: Formula
    If you can pull a couple of unix epoch times from the database, then let's run these formulae against them and see if it brings up the correct date and time separately.  These formula are pulled from another post by UberWolfe.
    ctime(( - 18000) / 86400+25569)
    cdate(( - 18000) / 86400+25569)
    The 18000 is for to convert for timezones for example 18000 is for     -5 GMT.

  • How do I export a Final Cut Express 4 movie using quick time conversion without stretching the image?

    I have created a movie in Final Cut Express 4 using videos and still photos of various aspect ratios and resolutions.  Some of the photos are verticals.  When I try to use File>Export>Using Quick Time Conversion, my images end up being stretched horizontally when the video is finally processed.  I have tried preserving the aspect ratio but the video still ends up stretched horizontally.  What should my settings be in Quick time conversion?  I just want to make a video for YouTube.
    Thanks.  -Bob

    If you shoot in one of the following modes you should be able to Log & Transfer directly into FCE:
    HD:  1920x1080/60i (FX or FH mode)
    HD:  1440x1080/60i (HQ or LP mode)
    SD:  720x480/60i
    1080/60p (PS mode) seems to be the default mode in your camcorder.  FCE only supports progressive video in 720p50 or 720p60.   That's probably why you have had to import via iMovie.
    It would be better to upgrade to Final Cut Pro X, the version currently supported.  FCE was discontinued over 18 months ago and is not supported on Lion or Mountain Lion.

  • Urgent : FLTP  to time conversion

    I have used the function module as C14W_NUMBER_CHAR_CONVERSION for time conversion.
    But it produces the output as follows.
    E_STRING                        86,400.000000000
    E_FLOAT                         8.6400000000000000E+04
    E_DEC                           86,400.0000
    E_DECIMALS                      15
    Here which one will have to be converted as time output.
    Regards.
    Sankar.

    I think the o/p is given in seconds ... 1 Day : 86400secs
    Use this
    E_DEC 86,400.0000

  • Unix time converter

    Does anyone have a good unix time converter class
    I want to convert a unix time to a UTC time in ss:mm:hh dd,mm,yy
    how to do this?

    int i = 1061287200;
    long t = i * 1000L;
    java.util.Date d = new java.util.Date(t);Assumes original time is seconds since some epoch...

Maybe you are looking for

  • Why is WPA2 still being used??

    This a message I wrote recently in a forum that brought up my idea from a couple of years and every year I see new products/WIFI being released, but not changes so here it is again....and hopefully someone who works with the WIFI alliance can bring t

  • ADRC updation in Creation of Sales order ( VA01)

    Hi All, I would like to update the Transportation zone(TRANSPZONE) of table ADRC while creating Sales order. I need to change this programatically. (Validation & change as per requirment) Please let me know the user-exit and  internal table i should

  • Blue screen on Ipad

    Hello Team, I am using ipad mini retina display and after the update of ios8, the ipad will automatically restart showing a Blue screen. Also, this thing is very irritating. Yes, instead of releasing new updates please fix this issue or keep the down

  • Barrery Issue is annoying me

    Hi, Barrery issue is now annoying me on its extreme. 1. When i am home, my phone is always pluged in to power (so in case if i go out for couple of hr my phone should not drain all the battery as 4S drains the battery so quick ) 2. When i am at work,

  • DMS Version Number Increment Control

    Dear Gurus, I have to set a type document with increment version alphanumber so the version has to begin with A , B,... so I have to set in Customizing  '* ' in Vers,No. Somebody knows which is the user exit to change increment version number of the