<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Jigyasa Kamthan on Medium]]></title>
        <description><![CDATA[Stories by Jigyasa Kamthan on Medium]]></description>
        <link>https://medium.com/@kamthanjigyasa11?source=rss-4542184e7818------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by Jigyasa Kamthan on Medium</title>
            <link>https://medium.com/@kamthanjigyasa11?source=rss-4542184e7818------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 03:22:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kamthanjigyasa11/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to convert UNIX epochs to datetime values in the OIC Mapper]]></title>
            <link>https://medium.com/@kamthanjigyasa11/how-to-convert-unix-epochs-to-datetime-values-in-the-oic-mapper-c17e26031974?source=rss-4542184e7818------2</link>
            <guid isPermaLink="false">https://medium.com/p/c17e26031974</guid>
            <category><![CDATA[unix]]></category>
            <category><![CDATA[oic]]></category>
            <category><![CDATA[datetime]]></category>
            <dc:creator><![CDATA[Jigyasa Kamthan]]></dc:creator>
            <pubDate>Tue, 31 Dec 2024 07:10:18 GMT</pubDate>
            <atom:updated>2024-12-31T07:10:18.120Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction:</h3><p>Navigating date-time conversions can often be a bit of a puzzle. Recently, I faced the challenge of converting UTC time to UNIX Epoch Time in Oracle Integration Cloud (OIC). While there are numerous references available for converting UNIX epochs to datetime values within Oracle Database, resources specifically for OIC are sparse. Therefore, I’m sharing my findings here to bridge that gap.</p><h3>Main Content:</h3><p>To convert UTC time to UNIX time, we can use following functions in OIC mapper:</p><p>If the data is in xsd:dateTime or IS0-8601 or (YYYY-MM-DDTHH:MM:SS+TZ) format:</p><ul><li>Convert the current dateTime to epoch time</li></ul><p>(fn:current-dateTime() — xsd:dateTime(‘1970–01–01T00:00:00’)) div xsd:dayTimeDuration(‘PT1S’)</p><p>— <em>This didn&#39;t work for me hence modified as below:</em></p><p>substring-after (string (floor (((fn:current-dateTime() — xsd:dateTime (“1970–01–01T00:00:00” )) div xsd:dayTimeDuration (“PT1S” )) ) ), “-” )</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l_yQQvjBdDtfQSqTgbAjlA.png" /><figcaption>OIC Gen3 Mapper</figcaption></figure><ul><li>Convert epoch time to dateTime</li></ul><p>(xsd:dateTime(‘1970–01–01T00:00:00’) + ($epochTime * xsd:dayTimeDuration(‘PT1S’)))</p><ul><li>If the data is in xsd:date or YYYY-MM-DD format:</li></ul><p>Convert the data to xsd:dateTime format using xsd:dateTime(concat($inputDate,&#39;T00:00:00&#39;)).</p><ul><li>If the data is in any other format:</li></ul><p>Convert the data to xsd:dateTime format using the xp20:format-dateTime() function or string functions such as concat(), substring-before(), or substring-after().</p><h3>Reference:</h3><ol><li><a href="https://docs.oracle.com/en/cloud/paas/application-integration/mapper-user/perform-date-conversions-mapper.html">Perform Date Conversions in the Mapper</a></li><li><a href="https://blogs.oracle.com/sql/post/convert-unix-epochs-to-datetime-values-in-oracle-database-and-back">How to convert UNIX epochs to datetime values in Oracle Database (and back again!)</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c17e26031974" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>