FLOAT TO TIME STAMP CONVERSION

Hi Folks,
I am getting some pain while i am converting from float values into timestamp...
I have a T1 table and one columns data type as float ...i want convert that float values into time stamp..
Exp: field1(float datatype)
48045.4352222
45065.4452222
These above values need to convert to time stamp (DD-MM-YYYY HH24:MI:SS)...

sb92075 wrote:
microfortnights? (do the math!)
Anybody know where microfortnight originated?I once consulted in a British railway firm - they still used "chains" as a form of measurement.
http://en.wikipedia.org/wiki/Chain_unit
I thought I'd dropped back into the Middle Ages - and it wasn't the only way.
A HUGE* system.
The only thing any table had (apart from data) was a primary key. No DRI. No nothing. I ran
a query to look for foreign keys (way to start to understand the system) and got no results returned.
I thought the mistake was mine, but no - the developers proudly* said that the system only
had PK's and nothing else. I actually got into an argument with a semi-colleague/programmer who
thought that it was up to programmers to control referential integrity - I could only shake my head.
There was an issue with a CASCADE DELETE (it wasn't happening) - I advocated putting it in
the database, but was overruled because the system had to work with several RDBMS's.
Ah, well - Oracle Insights deja vu all over again!
Paul...

Similar Messages

  • Problem with time stamp conversion

    Hi All,
    I am using the below code to convert timestamp to date and time  , its working fine when i print it with write statement  .
    But i want to convert and pass the time and date with format to excel sheet , but  its it taking again as string not in date time format .
    please see the below code .
    time_stamp = 20030309043000.
    CONVERT TIME STAMP time_stamp TIME ZONE tz
           INTO DATE dat TIME tim. 
    *WRITE: /(10) dat, (8) tim .
    please suggest .

    Now that you've converted your time stamp to date (type d) and time (type t), convert them into alphnumeric fields like you want or tell excel what is in that column, since Excel isn't telepathic...and doesn't always know what we sent it....
    data: date10(10) type c.
             time8(8) type c.
    write dat to date10 mm/dd/yyyy. "converts type d to user's specific date setting (not necessarily mm/dd/yyyy).
    concatenate tim(2)
                        tim+2(2)
                        tim+4(2)
       into time8 separated by ':'.
    I do wish that I understood the fascination with Excel....when we have such marvelous tools to work with inside SAP or BW.

  • Time stamp conversion and graphs from array data

    How can you read time stamps and data currently in an text file as an array and split in for display on a graph. I think I need to convert the time stamp back into seconds to do this but not sure how to do so?

    If you're using 8.2, the Read From Spreadsheet File VI can read string files. If not, you will need to open the VI and read the instruction on the diagram for how to change it.
    Once you have your string array, you can use the VI found here to convert the time column (note - read the thread) and convert the second column using the String to Number functions.
    Try to take over the world!

  • Time Stamp Conversion

    Hi,
          I need to convert the following time stamp into date and time. could any one help me how to do this?
    Input format:
    2008-05-19T01:00:00Z
    Convert statement wont work as it has characters in it.
    At present i have converted by using split statment. is there any other way of doing it ?
    Regards,
    Niyaz

    Hi,
    As in above post u use the FM to get your output. Check the below code:
    data : a type string,
           time_stamp type TZONREF-TSTAMPS,
           date type SY-DATLO,
           time type SY-TIMLO.
    a = '2008-05-19T01:00:00Z'.
    REPLACE ALL occurrences of '-' in a with space.
    REPLACE ALL occurrences of ':' in a with space.
    REPLACE ALL occurrences of 'T' in a with space.
    REPLACE ALL occurrences of 'Z' in a with space.
    time_stamp = a.
    CALL FUNCTION 'ABI_TIMESTAMP_CONVERT_FROM'
      EXPORTING
        iv_timestamp           = time_stamp
    IMPORTING
       O_DATE                 = date
       O_TIME                 = time
    EXCEPTIONS
       CONVERSION_ERROR       = 1
       OTHERS                 = 2
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    write : date, time.
    Regards,
    Raghu

  • Date Time stamp conversion

    I have a timestamp coming from flat file in the following format YYYY-MM-DD HH:MM:SS.mss(2007-02-21 11:48:31.000)
    to store in Bw I have  created a Object as data type :NUMC and length 14 ,I have conversion routine as times .I was wondering if this will work and also
    can anyone suggest me to covert this as YYYYMMDD and tIme by spliting the field i am getting from flat file.
    Thanks
    Samuel

    Hi Samuel,
    You would need to write a routine for converting.
    Char v_date(8), i_date(18), day(2), month(2), year(2).
    i_date = trans_stru-<your date>.
    day = i_date +  9(2).
    month = i_date + 6(2).
    year = i_date + 5(4).
    concatenate year month day into v_date.
    Result = v_date.
    Bye
    Dinesh
    (Do not forget to assign points!!)

  • Function module required for time stamp conversion into MST

    Hello,
    Please let me know if there is a SAP function module that can convert timestamp from GMT or provided timestamp into MST. I will need to use this function in BW transformation.
    Thanks.

    Try this one: TZ_GLOBAL_TO_LOCAL.
    Haven't used it myself yet, but it looks good.
    Good luck!
    Best regards,
    Zhou

  • Time Stamp Conversion program usage

    Hi ,
               Could you plz give solution for where we can use TIMESTAMP program in SAP R/3 an in SAP BW?
    Thanks
    Surya.

    Hi Surya,
    Please refer the below link which should help you.
    http://help.sap.com/saphelp_nw04/helpdata/en/60/b03f3ba54511d2a97100a0c9449261/frameset.htm
    Regards,
    Sharath

  • Time stamp to number conversion

    Hi All,
    I notice in Labview 7.0 the 'Get Date/Time to Seconds' and 'Seconds to Date/Time' now output a Time Stamp rather than actual seconds.
    There is a 'To Time Stamp" standard vi in the conversion pallet that converts a number (seconds) to a time stamp but I really need to convert from a Time Stamp to real seconds.
    Does anyone have a vi that might do this or is there something already in LabVIEW 7.0 I have overlooked?
    Many Thanks in Advance for your help.
    Sammy Mason

    You are going to have to post an example where the conversion does not work.
    Message Edited by Dennis Knutson on 05-05-2007 05:34 AM
    Attachments:
    TimeStamp to Dbl.PNG ‏2 KB

  • Time stamp in text conversation? Long convo not updating with time stamp!!

    I need my time stamp on each text! Three hours pasted and no time stamp update in text convo!!'???
    <Edited by Host>

    Hi, Acmarie.
    Thank you for visiting Apple Support Communities. 
    To see what time a message was sent or received. Drag any bubble to the left.  Below, I have included the user guide which references this new feature on page 66. 
    iPhone User Guide
    Cheers,
    Jason H. 

  • Time stamp to number function

    The Conversion VIs and Functions palette has a function that converts the number of seconds elapsed to a time stamp (To Time Stamp Function).  I need to go in the other direction, from a time stamp to a double (number of seconds elapsed since 12:00 a.m., Friday, January 1, 1904 Universal Time).  Does anyone have a function to do this?  I've tried to type cast with no success.
    Steve Hall
    [email protected]
    Solved!
    Go to Solution.

    Just use the To Double Precision Float function. It's polymorphic and it will accept a timestamp to return the number of seconds since the LabVIEW "zero-time".

  • System Time Stamp Indicator?

    I'm trying to use the "System" theme for my front panel, and my controls and simple numeric indicators converted over (from "Modern"). However, I noticed that there is no simple "Time Stamp Indicator" apparent on the System > Numeric (or elsewhere).
    Is there one that I just can't find? Or will I have to hard-code it in so that it displays using the system theme?
    Thanks
    Solved!
    Go to Solution.

    The most trivial one would be to just use a double floating point control and set its format to absolute timestamp. Then convert the timestamp type to DBL with the according conversion function.
    If you really want to go the route of a true system type control you will have to go into the control editor, which is a somewhat irky and tedious editor that shows its age from early LabVIEW days. There you would start with a classic timestamp control and replace the cosmetics with ones from a system string or similar control. It takes quite a bit of time to get to know the control editor and work around its murky behaviour sometimes.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions
    Attachments:
    System Timestamp.ctl ‏5 KB

  • What exactly IS Time Stamping?

    Hi,
    I'm building a web application in an effort to create
    something not only practical to use, but to also improve my
    programming abilities.
    At the moment, I store records in a database with separate
    columns for Time and Date.
    What I want to know is, is this a good way about doing
    things? I have tried to research the best way to store dates and
    times but can't find much on the subject for a beginner like me.
    I have often seen the format:
    {ts '2008-04-10 20:13:00'}
    ...floating around on the web - is this the proper way to
    maintain a time stamp?
    I simply want to do things properly from the ground up so
    would appreciate your advice and guidence on how to handle the
    storage of dates and times. If you could spare a minute to explain
    the best practice and pitfalls of this it would be much
    appreciated.
    Apologies if I sound really stupid!
    Thanks,
    Mikey.

    Kapitaine wrote:
    > Hi, thanks for the reply.
    >
    > So would it actually sit in my DB column as:
    >
    > {ts '2008-04-10 20:13:00'}
    >
    > Then do CF functions like this? e.g:
    >
    > <cfset variables.test = "{ts '2008-04-10 20:13:00'}"
    />
    > <h2>#dateFormat(variables.test,
    "dd/mm/yyyy")#</h2>
    > <h2>#timeFormat(variables.test, "hh:mm:ss
    tt")#</h2>
    >
    > Seems to work, but is this correct? Should the date and
    time be stored toether
    > like that? Why does it need curly braces and a "t". Is
    this some kind of
    > convention?
    >
    > Thanks,
    > Mikey.
    >
    Well, no, that is a string that ColdFusion typeless automatic
    conversion
    is allowing to work for you. You exact example would probably
    be better
    down as:
    <cfset variables.test =
    createDateTime(2008,4,10,20,13,00)>
    Now you have an actual date-time object variable that is
    easily
    accessible for all date-time functions, calculations and
    formating.

  • Bug report: Time stamp misalignment in recent list

    Bug report: With the new compact design, go to recent pivot, tap on a conversation, press back button to go back to recent, notice the time stamps to the right of the list have moved even more right, with text being cut off the screen.
    Using Lumia 1020 with Cyan and 8.1.1 DP.

    I figured this would be the best place to post it so that an Apple representative might see it.
    Actually it's not as likely to be seen here since there are so many posts for any Apple rep to have to scan. The best way to report an issue to Apple is through the feedback pages or, if you're a member of Apple's developer program, through the bug reporter.
    Regards.

  • GMT time stamps interfere with calendar in 8.1.2

    How do I prevent GMT time stamps from interfering with my calendars? This did not occur until I upgraded to OS 8.1.2
    I sync an iPod touch 5th generation with google calendars, and have done so with this device for over a year, and on a generation 3 device for four years - all without hassle. 
    Since upgrading to 8.1.2 my calendar is suddenly very difficult to use.
    -Chris

    Sushil,
    Please post this question in the Workshop 8.1 beta newsgroup.
    weblogic.developer.interest.81beta.workshop
    http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=xover&group=weblogic.developer.interest.81beta.workshop&utag=
    Thanks
    Raj Alagumalai
    WebLogic Workshop Support
    "Sushil" <[email protected]> wrote in message
    news:[email protected]..
    >
    Hi All,
    I am trying to develop JSP client for a conversational webservice. I amtrying
    it in two ways and
    none of them is working.
    1)
    I have put the Java Proxy file generated by Weblogic Workshop for myWebservice
    in the lib
    directory of the web application. According to article posted in "DearJohn" series,
    my proxy
    must have methods that take one additional argument to pass in Header infoapart
    from all
    the arguments mentioned by me. But, I don't see any methods like this inmy proxy
    and
    corresponding stub.
    2)
    Other suggested method is to use Webservices Control. In this, I amsetting a
    string as
    Conversation ID when I invoke a method that is marked to startconversation. Further,
    if I
    invoke any other method marked Continue in the same JSP it works. But,from another
    JSP
    where I set the same conversation ID and then try to call a method markedas Continue,
    it does not work. It say, check whether you have start a conversation. Ican see
    my conversation
    in Test browser and I am calling continue method before max-idle-time.
    I am not sure which step I am missing. Help Required!!!
    Thanks in advance,
    Sushil

  • Help to read a table with data source and convert time stamp

    Hi Gurus,
      I have a req and need to write a ABAP prog. As soon as i excute ABAP program it should ask me enter a data source name, then my ABAP prog has excute teh code, in ABAP code i have to read a table with this data source as key, sort time stamp from table and should display the data source and time stamp as output.
    As follows:
    Enter Data Source Name: 
    Then user enters : 2lis_11_vahdr
    Then out put should be "Data source  :"  10-15-2008.
    The time stamp format in table is 20,050,126,031,520 (YYYYMMDDhhmmss). I have to display as 05-26-2005. Any help would be apprciated.
    Thanks,
    Ram

    Hi Jayanthi Babu Peruri,
    I tried to extract YEAR, MONTH, DAY separately and using
    EDIT MASK written it.
    Definitely there will be some STANDARD CONVERSION ROUTINE will be there. But no idea about it.
    DATA : V_TS      TYPE TIMESTAMP,
           V_TS_T    TYPE CHAR16,
           V_YYYY    TYPE CHAR04,
           V_MM      TYPE CHAR02,
           V_DD      TYPE CHAR02.
    START-OF-SELECTION.
      GET TIME STAMP FIELD V_TS.
      V_TS_T = V_TS.
      CONDENSE V_TS_T.
      V_YYYY = V_TS_T.
      V_MM   = V_TS_T+4(2).
      V_DD   = V_TS_T+6(2).
      V_TS_T(2) = V_MM.
      V_TS_T+2(2) = V_DD.
      V_TS_T+4(4) = V_YYYY.
      SKIP 10.
      WRITE : /10 V_TS," USING EDIT MASK '____-__-________'.
              /10 V_YYYY,
              /10 V_MM,
              /10 V_DD,
              /10 V_TS_T USING EDIT MASK '__-__-__________'.
    If you want DATE alone, just declare the length of V_TS_T as 10.
    Regards,
    R.Nagarajan.
    We can -

Maybe you are looking for

  • I just updated my iPhone 4 to ios6 and lost everything. How do I get it back?

    I backed up my iphone and updated the software. I now have no apps, music, voice memos.....I was able to get my photos and contacts back. How do I get all the rest of my stuff back?

  • Error message in solution manager while importing transport using CHARM.

    Hi All, I am gettting below message while i am trying to import a change request using CHARM from solution manager "You are not allowed to work on a CR for UNITEOPS" "Data type-specifc customizing missinge for a data type" But other user in our team

  • HT5409 can i convert movies from iPad to mac laptop

    Ihave  download a movie from ipad but it will not play on my mac air laptop with quicktime installed..??

  • Error in J1IIN

    Dear SAP Experts, I have made a new sales document types for our new launch product, for example - ABCD (Contract) - ACCD (Sales Order) - LF - AFSB (Billing) - j1iin. I have done required configuration for the same. when i made sales order to billing

  • Adobe Photoshop 6.0 for mac install

    I purchased Adobe Photoshop 6.0 for mac off ebay, but when I try to install it I get a message that says the old style install is not supported. I am using an iMac Intel with Lion installed. Any suggestions?