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.

Similar Messages

  • Dates and convert to Unix Time Stamp using strtotime

    I kind of asked this before but now I really need this to work since I'm currently creating a form using the Update Record Form Wizard and the Date Picker to add/update/delete tour dates and this DB was created years ago and uses Unix Time Stamps to enter dates in the DB (example: 1202596733) and I know ADDT's date picker automatically doesn't support that format but there's got to be some way to incorporate the strtotime PHP command into either the add page or the tNG.dispatcher.class.php file. But how? Has anyone experimented with this previously? I was on another forum and they told me to add this:
    $timestamp = strtotime($_POST['tourdate']);
    to my code but they didn't tell me where and nothing seems to work in making it happen. Anybody got a clue?

    Hi Sean,
    You should be able to simply add the new directory to your include path. But this might fail if relative rather than absolute paths are used
    Indeed, ADDT internally uses relative paths at various places, e.g. the file "includes/common/KT_functions.inc.php" has function named KT_getSiteRoot(), where the variable $siteroot has the following value:
    dirname(realpath(__FILE__)) . '/../..';
    In addition many scripts are defining an absolute path to other scripts, e.g. the Captcha configuration file sets the global variable "KT_CAPTCHA_TEMP_URL" to "includes/common/_temp/.captcha/" -- means that moving the ADDT libraries to a folder like "includes/ssa/" will not work without modifying whatever ADDT script which uses such a hard-coded path, and there are plenty of them.
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Error when converting time stamp in date time time zone CST  in IC

    Hi Experts,
    We have recently upgraded from CRM 5.0 to CRM 2007. We are using IC WEB Employee interaction center.
    so when agent create service ticket in interaction center and close the ticket on same day we are getting an error saying Error when converting time stamp in date time time zone CST.
    we thought there may be problem while installing SAP CRM by basis team in time zone, but we did not find any problem.
    So please advice how to resolve this issue.
    Regards,
    Teja

    Hi Teja,
    I saw a similar message, and it was resolved by adding a timezone to the user profile defaults tab in SU3. I believe the system has been configured to convert between users' timezone and the system timezone, therefore it needs to know each users' timezone.
    Regards,
    Simon.

  • Changing Unix Time Stamp

    Hi everyone,
    Am trying to change the unix time to normal date format. am using *"<?xdoxslt:ora_format_date_offset('1970-01-01', DUE_T div 86400, ??)?>"*+
    But when I try to run the report (with sample xml), it is showing me the below error:
    "Caused by: oracle.xdo.parser.v2.XPathException: Error in expression: 'xdoxslt:ora_format_date_offset('1970-01-01', DUE_T div 86400, ?+?)'.
         at oracle.xdo.parser.v2.XSLProcessor.reportException(XSLProcessor.java:806)
         at oracle.xdo.parser.v2.XSLProcessor.newXSLStylesheet(XSLProcessor.java:614)
    Can anyone help me on this.
    Thanks in advance,
    Imtiaz.

    Hi,
    Can anyone please help me on this?
    Thanks,
    Imtiaz.

  • Problem with Time stamp function module for converting US to Japan

    Hi All,
    I need standard function module for converting US Timestamp to Japan, Can any one let me know is there any standard function modules.
    thanks in advance!
    Regards,
    Kalidas.T
    Edited by: Kalidas Thirumoorthy on May 5, 2009 5:29 PM
    Edited by: Kalidas Thirumoorthy on May 5, 2009 5:30 PM
    Edited by: Kalidas Thirumoorthy on May 5, 2009 5:30 PM

    Try this way:
    CONVERT TIME STAMP <tst> TIME ZONE <tz> INTO DATE <d> TIME <t>.
    CONVERT DATE <d> TIME <t> INTO TIME STAMP <tst> TIME ZONE <tz>.
    <tst> is of type P(8) or P(11) with 7 decimal places
    <tz> of type C(6)
    Refer to help.sap.com for more details.

  • 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) ...

  • Remove time stamp from date

    hi guys
    Had start date and end date as prompt in webi report and showing same date value in report header using UserResponse function but it is showing time with date, and in report both columns are showing in dd/mm/yyyy format, have tried using FormatDate(UserResponse("Start Date:"); "dd mmm yyyy"), it is giving an error
    " The expression/sub-expression uses an invalid data type"
    please tell me what is wrong in the formula
    thanks & regards

    Hi,
    It is creating an #ERROR when the format you assign to the ToDate function does not match the date in the string.
    E.g. if you have a user response like '1/1/1998 12:00:00AM' you could use the formula:
    =FormatDate(ToDate(Left(UserResponse("prompt");8);"M/d/yyyy");"dd MMM yyyy")
    to get a result as: 01 JAN 1998
    However this fails when the date changes to 10/1/1998 or 1/10/1998 or 10/10/1998. In those cases the format of the ToDate function should be: "MM/d/yyyy" or "M/dd/yyyy" or "MM/dd/yyyy".
    I know it's a lot of work, but the best solution is to create variables for month, day and year:
    1. variable for month v_month
    =Left([prompt_date];Pos([prompt_date];"/")-1)
    2. we need to get rid of the first part of the string to find the second '/' so we create a dummy variable dummy1
    =Right([prompt_date];Length([prompt_date])-(Length([v_month])+1))
    3. variable for day v_day
    =Left([dummy1];Pos([dummy1];"/")-1)
    4. create a second dummy variable dummy 2 to get rid of the day part of the string
    ==Right([dummy1];Length([dummy1])-(Length([v_day])+1))
    5. variable for year v_year
    =Left([dummy2];4)
    Just assuming that the year is always 4 positions in the prompt string.
    Now you can create your variable for displaying the date in the format you want:
    ==FormatDate(ToDate(FormatNumber(ToNumber([v_month]);"00")+FormatNumber(ToNumber([v_day]);"00")+FormatNumber(ToNumber([v_year]);"0000");"MMddyyyy");"dd MMM yyyy")
    Note: I was just assuming that your date format is always month/day/year. If the format is different then you need to change the variables accordingly.
    Hope this helps
    Harry

  • What is the easiest way to get time stamped wvm data with AI samp Ch Vi?

    The AI sample channel VI only outputs single point waveform data which is making it a beast for me to get my input data into XY graphs. I have been trying to combine the data with a elapsed time clcok so I can synchronize all my inputs but it isnt working too great. All this stuff is in a while loop also, so that gives me trouble. Basically I just want to make an XY graph from both AI inputs.
    Attachments:
    PID_Control_LoopII.vi ‏326 KB

    Tim, no problem. I have attached the modified code that displays the readings from both devices on the same plot. I used a chart instead of an XY graph since it is much easier to use (it keeps track of elapsed time for you if you know the amount of time in between data points - and since the loop time is fixed we do know that). If this time were to change, then we would have to re-create the X-axis (time) and the XY graph would be necessary. One other note - the code that reads the values from the DAQ cards will not execute at exactly the same time, therefore the data will not be acquired at exactly the same time, though it will be close. Therefore, if your application requires these readings to be dead on together in time down to the mi
    crosecond for example, then you would have to synch the two devices via hardware. Let me know if you intend to do that and I can steer you in the right direction. Hope this helps.
    Attachments:
    PID_Control_LoopII_rev_2.vi ‏89 KB

  • Load Test Results - time series request data for by URL in VS2013

    I am trying to figure out how to export and then analyze the results of a load test, but after the test is over it seems I cannot find the data for each individual request by url. This data shows during the load test itself, but after it is over it seems
    as if that data is no longer accessible and all I can find are totals. The data that I want is under the "Page response time" graph on the graphs window during the test. I know this is not the response time for every single request and is probably
    averaged, but that would suffice for the calculations I want to make. 
    I have looked in the database on my local machine (LoadTest2010, where all of the summary data is stored) and I cannot find the data I'm looking for. 
    My goal is to plot (probably in excel) each request url against the user load and analyze the slope of the response time averages to determine which requests scale the worst (and best). During the load test I can see this data and get a visual idea but when
    it ends I cannot seem to find it to export. 
    A) Can this data be exported from within visual studio? Is there a setting required to make VS persist this data to the database? I have, from under Run Settings, the "Results" section "Timing Details Storage" set to "All individual
    details" and the Storage Type set to "Database". 
    B) If this data isn't available from within VS, is it in any of the tables in the LoadTest2010 database where all of the summary data is stored?
    Thanks
    Luke

    Hi Luke,
    Since the load test is used to
    simulate many users accessing a server at the same time, it is mainly verify a wev server load stress.
    As you said that you want to find the data
    for each individual request by url, I know that generally we can analyze the url request from the Summary like the following screen shot.
    >>I
    have looked in the database on my local machine (LoadTest2010, where all of the summary data is stored) and I cannot find the data I'm looking for. 
    I suggest you can try to add the
    SQL Tracing Connect String in the Run Setting properties to trace the data.
    Reference:
    https://social.msdn.microsoft.com/Forums/en-US/74ff1c3e-cdc5-403a-b82f-66fbd36b1cc2/sql-server-tracing-in-visual-studio-load-test?forum=vstest
    In addition, you can try to create an excel to analyze the load test result, for more information:
    http://msdn.microsoft.com/en-us/library/dd997707.aspx
    Hope it help you!
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • 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).

  • How to Convert Time Stamp to String for Filename use

    I'm writing an Labview application in which I would like to convert pull time stamp infor from Time Stamp VI and convert to string so I can use to append as part of filename.
    The fomat that I want may look something like basefilename081208_1300.  This would represent a file name that has elements consisting of the date 08/12/08 and 13:00 hours zulu.
    Paul 

    Hello:
    Use the Format Date/Time String VI, and use as the format string the following: %d%m%y_%H%M
     This way you'll get the date string you want. 
    Then concatenate the output to other strings you need to name your file.
    I've attached an screenshot.
    Hope this helps.
    Robst.
    Robst - CLD
    Using LabVIEW since version 7.0
    Attachments:
    datetime string.JPG ‏20 KB

  • HT203177 Can time machine backup data for newer OS?

    I had upgraded my Macbook to OS X 10.7
    Can I continue to backup data for Time Machine used to backup data for the same Macbook with previous version of OS?

    Yes. Time Machine will continue to backup your system as it should.

  • Compare time depednt master data for two key dates in a report?

    Hello all,
    We have a requirement where we want to see the difference in master data at particular key dates (time dependent master data).
    Like if employee has State = OH till yesterday (12/01/2008) and today it is changed to State =KY (12/02/2008 to 12/31/999) loaded in BW which is time dependent.
    So basically if you run the query for Key date 12/01or before you will see OH as state and if you run query for key date 12/02 or further you will see KY.
    We want to create a report where we want to list employees and compare in two columns basically the previous value and the current value. So input would be two key date variables and the report would look like
    Employee                  Key date 1(state)                  Key date 2 (state)
    Employee1                         OH                                  KY   
    Has anyone done this before, can someone help me doing this?
    Thanks,

    Hi ,
    For this scenario , Can you please create variabale ( From value -- to value ) in the key figure date .And by using the time period in the varaible u can get the employees for both the states ...
    Hope this helps out
    thanks
    PT

  • Date Unix time stamp in milli seconds

    TYPES : BEGIN OF ty_final,
             line(600)  TYPE c,
            END OF ty_final.
    DATA : gt_final TYPE TABLE OF ty_final.
    I have some the records are that are appending to the  internal table gt_final is of length 6423,7.
    How can I achieve this ?
    Finally I have to send this internal table data into file to third party.

    Yes you need to convert all to strings since the timestamp in HH:MMS is a string.  In the string palette, there is a sub-palette full of numeric to string conversion tools.  Use the Number to Fractional String to convert all numerical data to strings.  Use the Format/Date Time String function (found in Timing palette) to convert the timestamp to HH:MMS.  See the format string in my example.
    - tbob
    Inventor of the WORM Global
    Attachments:
    TimestampAssistance[1].vi ‏14 KB

  • Time Stamp Delta field for Generic Data Source

    Hi Experts,
    I have a requirement to create a Generic Data Source based on view. This view on PA0006 and PA0105 tables.
    Will you please suggest me which field i have to take as delta field.
    Thanks In Advance.

    Also, make sure that whenever a new record is created in those tables, field AEDTM is getting updated with system date else you will miss new records in delta unless there is a change in those newly created records.
    Regards,
    Gaurav

Maybe you are looking for

  • When a book has an update in ibooks, how can I tell what is new?

    When a book has an update in ibooks, how can I tell what is new?

  • Template with data variables will not insert ampersand

    Dear clever people I have an illustrator template (saved as .ai) which contains some text boxes and some images. I have tagged these as text and linked file dynamics, so that I can create a series of files with slightly different text and pictures wh

  • N8: ovi chat / messanger won't work simultaneously...

    Ovi chat / messanger won't work simultaneously with Gtalk on PC. Usually, Google Talk supports multiple clients being active, you can have it running at the same time on your PC, on your laptop and your android phone. But not on your N8 phone! The cl

  • Can get page to display via the internet

    I used the built in FTP in RoboHelp HTML to publish my pages to the server. I can not view them on the server. For some reason the page won't display. Here is the URL. http://www.krooth.com/mycfsite/html/_help/cilarus_help.htm I have verified that ev

  • Checking for Purchased Music

    I recently lost all of my music due to me crashing my hard drive...don't ask! Anyway, I went to go check for purchased music on iTunes and it gave me 149 of my 160 songs. I want those other 11 songs, but when I go and try to check for purchased music