UTC Date/Time conversion

Is there a documented formula for converting UTC date/time stamps in CallDetailRecords (e.g., 1074902387) to a recognizable time/date?

In Call Manager, the CDR exports are in EPOCH time. Here is the  formula to convert epoch time in a Call Manager CDR to a standard format  in excel. After using the formula, you will need to format the cell for  date and time.
=(((E2-(6*3600))/86400)+25569)
E2 = cell reference
6 = Timezone Offset (this is Central Standard time)
3600 = Number of seconds in an hour
86400 = Number of seconds in a day
25569 = Excel hack because excel counts epoch from 1/1/1904 and most others start at 1/1/1970.
Found this formula on the following webpage:
http://ciscovoiceguru.com/473/convert-epoch-utc-time-in-excel/

Similar Messages

  • 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

  • Power Query Language Functions to Convert a UTC Date/Time to MST

    I need to convert an implicit UTC date/time value to a MST date/time value.  I thought that I could achieve this by converting to an ISO 8601 compliant text representation of the MST date/time value (see below) and then back to a date/time value, but
    it's not working ...
    DateTime.FromText( DateTime.ToText( [MIN_REVSN_RLSE_DTTM] ,"yyyy-MM-ddThh:mm:ss-07")) 
    Is this a bug?  Or, is there a better way to do this?

    That's a fixed duration. Why not just [MIN_REVSN_RLSE_DTTM] + #duration(0, -7, 0, 0)?
    EDIT: For what it's worth, I don't think PQ ever does anything with DST anyway. This has both good points and bad points.

  • UTC Date Time and Normal Date Time

    Hi All,
    1. How UTC date time and Normal date time differs in siebel.
    2. If legacy data needed to be loaded into siebel, in siebel few fields are date time and UTC date time fields. what would happen if we load both normal date time and UTC date time without considering them techinically?
    3. UTC date time holds any specific format in physical database? If we want to load legacy data to UTC date time format what is the query to manipulate it?
    Thankyou
    Sean

    Sean,
    Please check document below, I believe it has most of the answers to the questions you have:
    http://download.oracle.com/docs/cd/E14004_01/books/GlobDep/GlobDepUTC.html
    Hope it helps,
    Wilson

  • ABAP statement for converting UTC date/ time to local date/time

    Hi
    Is there any abap statement or any function module in BW which converts UTC date and UTC
    time into local date and local time according to specific country.
    Regards,
    Kate

    Hi,
    and to convert the country to a timezone first use: TZ_LOCATION_TIMEZONE
    /manfred

  • Date time conversion

    Someone has exported a CSV file with Date Time field sent as text with 'period' separation. How can I convert from 12.10.2009 10:00:00 to a recognised date time for future date difference calculation?
    Regards,
    Brian.

    Hi
    Try the following formula :
    Numbervar hh;
    Numbervar mm;
    Numbervar ss;
    hh:=tonumber(Mid(,1,2));
    mm:=tonumber(Mid(,4,2));
    ss:=tonumber(Mid(,6,2));
    Time(hh,mm,ss)
    Thanks,
    Sastry

  • Oracle Interval and Date/Time Conversions. Help!

    Hi guys.
    I am trying to migrate from MySql to Oracle some queries, but I don't know how works some SQL functions in Oracle.
    One of my queries I have to add to a date variable an amount of microseconds, seconds or minutes, in mysql the function is like this:
    DATE_FORMAT(LOCALDATE + INTERVAL DeltaT * 1000 MICROSECOND , '%d/%m/%Y %H:%i')
    I woud like also convert seconds, minutes, or hours to a Time variable, my example in mysql is like this:
    TIME_FORMAT(SEC_TO_TIME(DeltaT div 1000),'%H:%i')
    By the way: DeltaT is in seconds and LOCALDATE is a date variable.
    I hope you can help me with this.
    Thanks.

    SQL> CREATE TABLE t (localdate DATE, deltat INTEGER);
    Table created.
    SQL> INSERT INTO t VALUES (DATE '2006-12-25', 1234);
    1 row created.
    SQL> INSERT INTO t VALUES (DATE '2006-12-25', 23456);
    1 row created.
    SQL> alter session set nls_date_format = 'DD-MON-RRRR HH24:MI:SS';
    Session altered.
    SQL> SELECT localdate
      2       , deltat
      3       , localdate + deltat/86400
      4  FROM   t;
    LOCALDATE                DELTAT LOCALDATE+DELTAT/864
    25-DEC-2006 00:00:00       1234 25-DEC-2006 00:20:34
    25-DEC-2006 00:00:00      23456 25-DEC-2006 06:30:56
    2 rows selected.

  • UTC Date Format

    Hi,
    I am facing the following problem.
    Say If I use the following select command
    select upd_date
    from table
    where id=123
    I get as result => 22.08.07
    I know that this result is in UTC Format.
    I would like to get the localformat with hour min and sec.
    Which function do I have to use for it, to get the local time?
    select ?func?( upd_date )
    from table
    where id=123
    Google leads me to SYS_EXTRACT_UTC.
    1st of all I can't use it with my column upd_date.
    But I think this function is if the stored value would be in localtime
    and I would like to get the UTC date time of it. LOCAL => UTC.
    I want the opposite version. UTC => LOCAL
    thanks for any hint
    aykut

    unfortunately returns your code the stored date value as is and not the converted localdate.
    say, user sets a meeting date via GUI.
    user sees the local date, e.g. 31.11.2007 14:01:23
    User lives in an area with the timezone UTC +1 e.g. in London,
    (the database is set as UTC +1 as timezone)
    that means the value is stored as 31.11.2007 15:01:23
    The conversion depends on summer and winter time.
    So if I submit a SELECT for a stored value: "31.11.2007 14:01:23"
    I expect to get "31.11.2007 15:01:23"
    With your SQL I get the same value as is in the database.

  • Convert String to java UTC date then to sql date

    Hi,
    I am trying to convert string (MM/dd/yyyy format) to UTC date time and store in the database.
    This is what I did:
    String dateAsString = "10/01/2007";
    SimpleDateFormat formatter = new SimpleDateFormat("MM/dd/yyyy");
    formatter.setTimeZone(TimeZone.getTimeZone("GMT"));
    formatter.setLenient(false);
    java.util.date dateValue = formatter.parse(dateAsString, new ParsePosition(0));
    dateValue will be Sun Sep 30 20:00:00 EDT 2007 in UTC.
    Now I need to store this date and time to MS SQL database.
    I used the following code:
    java.sql.Date sqlDateValue = new java.sql.Date(parsedToDate.getTime());
    But this code give only the date, not time 2007-09-30
    Can anybody tell me how I can change this java date to sql date (or datetime?) so that I can get both date and time.
    Thanks,
    semaj

    semaj07 wrote:
    Hi,
    I am trying to convert string (MM/dd/yyyy format) to UTC date time and store in the database.
    This is what I did:
    String dateAsString = "10/01/2007";
    SimpleDateFormat formatter = new SimpleDateFormat("MM/dd/yyyy");
    formatter.setTimeZone(TimeZone.getTimeZone("GMT"));
    formatter.setLenient(false);
    java.util.date dateValue = formatter.parse(dateAsString, new ParsePosition(0));
    dateValue will be Sun Sep 30 20:00:00 EDT 2007 in UTC.
    Now I need to store this date and time to MS SQL database.
    I used the following code:
    java.sql.Date sqlDateValue = new java.sql.Date(parsedToDate.getTime());
    But this code give only the date, not time 2007-09-30
    Can anybody tell me how I can change this java date to sql date (or datetime?) so that I can get both date and time.
    Thanks,
    semajTake a look at java.sql.Timestamp:
    http://java.sun.com/javase/6/docs/api/java/sql/Timestamp.html
    Edited by: hungyee98 on Oct 17, 2007 8:57 AM

  • For custom tables should we use UTC for date/time fields

    A general question.
    Can anyone confirm that SAP does seem to be moving towards storing date/time in UTC format?
    We're building custom tables and we're making it a standard to store date/time fields in UTC format.
    Regards,
    Lavaughn

    Hello Lavaughn,
    I can not speak for SAP, but from my personal experience TimeStamps are the state of the art to store time date info in db tables. Even with date/Time fields a conversion to the local timezone is necessary. Of course you can reuse your db definition on dynpros. But since UI and business logic will be divided anyway this is also not really a valid point.
    Best Regards
    Klaus

  • Time Conversion from Local to UTC Help! - Daylight Savings Problem?

    Hi,
    I am trying to use the generic conversion of local time to UTC time.  I thought I had everything working since I use the "Get Date/Time in Seconds" and then convert to "Seconds to Date/Time" witht the "to UTC" flag set true.  Then I convert back to a timestamp.
    I thought I had everything working until I hit Daylight Savings for the Pacific Standard Time.  Now the Labview is off by 1 hour!
    Is there an update to the Subvi's that do this?  Is this a known error?  Please help.   Thank you!
    Attachments:
    test25_LocalToUTC_Time.vi ‏8 KB

    Here is the path you are doing that is causing the logic to fall apart for you.
    1.  You are getting the current time.  In your images, it is 12:41 pm PDT which is 7:41 pm GMT
    2.  You are asking for the date/time record (that cluster that breaks out everything) but are saying it is UTC, so you get a date/time record that 19:41 UTC (7:41 pm).  And the DST flag is 0.  (Because UTC doesn't observe daylight savings time.)
    3.  Now  you are taking that date/time record and converting back to an actual date/time.  You don't wire up the UTC flag so it defaults to false.  Thus the date/time record is interpreted as local.  That DST flag is still 0 in your cluster.  So you are actually converting the time to 7:41 pm PST, which is actually 8:41 PDT.  (+1 hour for spring forward based on the month/date info.)
    4.  You are displaying that time stamp in the indicator labelled "Current Date/Time (UTC)", but it is not truly UTC, it is actually the conversion of a local time from PST to PDT, and it is not even the current local time.  It is actually a "local" time 8 hours into the future.  If you put the carat into that indicator's display format, you'll see that the UTC time is in the future as well.  You call it UTC, but you are displaying a future local time.
    The inconsistent conversions from local to UTC, and not accounting for the change of the DST flag from daylight time to UTC are what is confusing you.  You kind of get lucky during standard time because the DST flag is 0 for both local standard time and UTC.  But the conversions are still wrong, but it is a case of two wrongs are making it look right.  Even in standard time your input timestamp and your output timestamp indicator don't match which you would see if you used an Equals? function on them.

  • PowerBI regional/localisation settings (date time format/timezone) - PowerPivot dax NOW() returning UTC date

    Can the regional settings be changed for PowerBI or are we stuck with UTC? Tried googling but the only hits for 'regional powerbi' relate to the portal being available in that region, not any kind of localisation configuration
    I have a workbook that is set to auto refresh. I've added a 'last refreshed' label to the front page, but when refreshed on PowerBI it shows the time in UTC (10.5 hrs off from where I am).
    I'm not a sharepoint person so will need steps and diagrams if it's a sharepoint config setting :)
    Jakub @ Adelaide, Australia Blog

    Hi Ed,
    I have a date dimension and I add a computed column to it. It's called RefreshDate. The code for the computed column is =NOW()
    I then use this column to show to the user when the model was last refreshed.
    Hi Greg, not really interested in workarounds at this time (i have another thread going for that & my data source is web apis, not a relational db with datetime functions) -
    this is more of a question of "is it possible to choose which timezone is used by the powerbi vertipaq engine for scheduled refreshes? yes/no"
    We are working in a single time zone, but the PowerBI vertipaq engine looks like it's lives in london.
    It shows the correct current time on the local user's PC when I (or a user) refreshes this model locally. It shows the UTC date (my time zone - 10.5 hrs) when the report is refreshed by powerbi.
    I have a workaround going in my report currently using powerquery to get the utc date and manually add 10.5 hrs + add a label to my report that states this is a fixed 10.5hr. This is a hack because we're in a daylight savings zone, so in a few months
    the tz will revert to +9.5hrs and i'll need to manually fix this again unless i'm able to set powerbi to use my time zone.
    The sharepoint guys here have changed every setting they know about in sharepoint online/o365 in regards to time zones and localisation. The date format and dates shown are correct for the 'web pages' part of powerbi (the refresh history, the formatting
    of the dates on the powerview reports etc), but the time zone used when powerbi executes the NOW() dax command appears to be set to UTC.
    Thanks
    Jakub @ Adelaide, Australia Blog

  • Converting UTC dates to local time

    Hello all. I have some data I imported that has a date column containing dates spanning a number of years. The dates are in the UTC timezone.
    I need to display the dates in the local time zone that was in effect at the time. I've seen many fine examples of converting from one time zone to another. But I need it to be smarter than that. For example, date/times (this year) prior to 03/09/2008 2AM should display in EST (my zone in effect then), while date/times on/after then should display in EDT.
    Are there any Oracle built-in functions to do this, or will I need to gather the data of when daylight savings time begins/ends for the years I have dates and write my own function? I don't need help for the latter; I just don't want to reinvent the wheel. Also, I don't want to convert the data; I append to it regularly.
    Thanks for your help and consideration.

    Sergiusz, thanks again. When I added a very recent date, I saw the effect. But perhaps something is wrong with my local 10gR1 "play" database. It seems the DST start point is not correct. Should it not start showing -4 offset at row# 4? I didn't see a change until I added the last date. But I believe DST began on 3/9/2008 at 2am local, which is 7am UTC.
    ~Pete
    SQL> DROP   TABLE imported_events;
    Table dropped.
    SQL> CREATE TABLE imported_events (event_date TIMESTAMP(0) WITH TIME ZONE);
    Table created.
    SQL> BEGIN
      2  INSERT INTO  imported_events VALUES ( '10-JAN-08 2:00:00 PM UTC');
      3  INSERT INTO  imported_events VALUES ( '08-MAR-08 2:00:00 PM UTC');
      4  INSERT INTO  imported_events VALUES ( '09-MAR-08 6:59:00 AM UTC');
      5  INSERT INTO  imported_events VALUES ( '09-MAR-08 7:01:00 AM UTC');
      6  INSERT INTO  imported_events VALUES ( '09-MAR-08 2:00:00 PM UTC');
      7  INSERT INTO  imported_events VALUES ( '10-MAR-08 2:00:00 PM UTC');
      8  INSERT INTO  imported_events VALUES ( '09-JUN-08 2:00:00 PM UTC');
      9  COMMIT;
    10  END;
    11  /
    PL/SQL procedure successfully completed.
    SQL> COLUMN ROWNUM         FORMAT 99
    SQL> COLUMN event_date_utc FORMAT A25
    SQL> COLUMN offset_local   FORMAT 99
    SQL> COLUMN offset_eastern FORMAT 99
    SQL> SELECT ROWNUM
      2        ,event_date event_date_utc
      3        ,TO_CHAR(CAST((event_date AT LOCAL) AS DATE),'YYYY-MM-DD HH24:MI:SS') date_local
      4        ,(CAST((event_date AT LOCAL) AS DATE) - CAST(event_date AS DATE))*24 offset_local
      5        ,TO_CHAR(CAST((event_date AT TIME ZONE 'US/Eastern') AS DATE),'YYYY-MM-DD HH24:MI:SS') date_eastern
      6        ,(CAST((event_date AT TIME ZONE 'US/Eastern') AS DATE) - CAST(event_date AS DATE))*24 offset_eastern
      7    FROM imported_events
      8   ORDER BY 1;
    ROWNUM EVENT_DATE_UTC            DATE_LOCAL          OFFSET_LOCAL DATE_EASTERN        OFFSET_EASTERN
         1 10-JAN-08 02.00.00 PM UTC 2008-01-10 10:00:00           -4 2008-01-10 09:00:00             -5
         2 08-MAR-08 02.00.00 PM UTC 2008-03-08 10:00:00           -4 2008-03-08 09:00:00             -5
         3 09-MAR-08 06.59.00 AM UTC 2008-03-09 02:59:00           -4 2008-03-09 01:59:00             -5
         4 09-MAR-08 07.01.00 AM UTC 2008-03-09 03:01:00           -4 2008-03-09 02:01:00             -5
         5 09-MAR-08 02.00.00 PM UTC 2008-03-09 10:00:00           -4 2008-03-09 09:00:00             -5
         6 10-MAR-08 02.00.00 PM UTC 2008-03-10 10:00:00           -4 2008-03-10 09:00:00             -5
         7 09-JUN-08 02.00.00 PM UTC 2008-06-09 10:00:00           -4 2008-06-09 10:00:00             -4
    7 rows selected.
    SQL>

  • Problems converting FILETIME date/time into MM/DD/YYYY format...

    Has anyone successfully converted a FILETIME date/time value into a MM/DD/YYYY format using ColdFusion? I am failing drastically, and it seems like an easy conversion.
    FILETIME format (details: http://msdn.microsoft.com/en-us/library/windows/desktop/ms724284(v=vs.85).aspx) is a 64-bit value representing the number of 100-nanosecond intervals since January 1, 1601 (UTC).
    A database I'm working with has such values, and I want to display them in a user-friendly date format within my application.
    For example, one record is:
    13003368600
    The above number represents the following date and time:
    1/22/2013 @ 2:50 PM
    Sadly I know this only because the FILETIME value gets written to the database by a third-party application, and within that application I specify it in the MM/DD/YYYY format.
    Can anyone offer me some guidance, or better yet has anyone accomplished this already and want to share code?

    I did this, on cf9/linux, and it seemed to do the trick:
    <cfscript>
    Long = createObject("java","java.lang.Long");
    Date = createObject("java","java.util.Date");
    fileTimeToEpoch =
    // take pwdLastSet From Active Directory, it's in filetime
    pwdLastSet = JavaCast("long", Long.parseLong("130292682204519505"));
    // take filetime and turn it into epoch/java - 1970/1/1
    // http://www.silisoftware.com/tools/date.php - converted: jan 1, 1970 00:00 -00
    javaTime = JavaCast("long", pwdLastSet - 116444736000000000);
    // convert to milliseconds
    javaTime = JavaCast("long", javaTime / 10000);
    today = JavaCast("string", Date.init(javaTime));
    </cfscript>
    <cfdump var="#pwdLastSet#">
    <cfdump var="#javatime#">
    <cfdump var="#today#">

  • Function that returns the date/time ?

    We would like to make a validation in the Activity status based on the activity End Time.
    Pls... is there a function that returns something that I could compare with: "8/6/2009 01:00 PM" ?
    I know of Today but I understand that today() returns just the day (no time).
    Txs.
    Antonio

    Hi Antonio,
    You can try using the function -: Timestamp()
    To quote the CRM On Demand help files...
    "+The Timestamp function in Expression Builder returns the server date and time converted to the current user's time zone setting. For example, if the current user's time zone setting is set to Eastern Daylight Time (EDT) -0400 UTC, the Timestamp function converts the server time to EDT. The TimeStamp function performs UTC (universal time code) conversion. NOTE: Arithmetic operations (for example, add or subtract) are not supported with the Timestamp() function.+"
    Hope this helps.
    Regards,
    Cameron

Maybe you are looking for

  • How can I check out the computers my Apple ID is activated on?

    Hi there! I hope there is a simple solution for this issue: I want to see not only how many, but which computers are connected to my Apple ID. In iTunes I can see that 5 computers are activated, but the only option is to deactivate all of them (which

  • The Computer is not verifying the iPod

    I try to plug my iPod into the computer, and the computer won't even verify that its there. I've tried Resetting it, and I would restore it, but the computer won't even verify it It says... "iTunes cannot read the contents of the iPod "MICHAEL'S I".

  • What are the benefits of arch linux ?

    What are the benefits of arch linux ? default package management /software installation tool .

  • Marking "complete" in the LMS

    Is there a way to have a slide in a project and some how designate that that slide does not need to be visited in order to mark completion in an LMS? In my project, I would like to have a Resource page within my course that users can access "if they

  • How can I print multiple (4) pictures to a sheet using photoshop Elements 4.0?

    I have had to reload the software for Photoshop Elements 4.0 onto my new computer and I'm having trouble figuring out how to print multiple pictures to a sheet.