<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									SQLite - Unix Time (Epoch of POSIX Time) omzetten naar DateTime - Databases				            </title>
            <link>https://www.tweaking4all.nl/forum/databases/sqlite-unix-time-epoch-of-posix-time-omzetten-naar-datetime/</link>
            <description>Tweaking4All.nl Discussie Forum</description>
            <language>nl-NL</language>
            <lastBuildDate>Sat, 05 Sep 2026 21:09:24 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>SQLite - Unix Time (Epoch of POSIX Time) omzetten naar DateTime</title>
                        <link>https://www.tweaking4all.nl/forum/databases/sqlite-unix-time-epoch-of-posix-time-omzetten-naar-datetime/#post-447</link>
                        <pubDate>Thu, 11 Oct 2018 14:29:48 +0000</pubDate>
                        <description><![CDATA[Terwijl ik bezig was met &quot;Rename My TV Series&quot; liep ik tegen het probleem dat de TVDB API (v2) een tijd in het Unix Epoch formaat (ook bekend als Unix Time of POSIX time), terwijl ik een gew...]]></description>
                        <content:encoded><![CDATA[<p>Terwijl ik bezig was met "Rename My TV Series" liep ik tegen het probleem dat de TVDB API (v2) een tijd in het <a href="https://nl.wikipedia.org/wiki/Unix_Epoch" target="_blank">Unix Epoch</a> formaat (ook bekend als Unix Time of POSIX time), terwijl ik een gewone DateTime in mijn SQLite database wilde opslaan.</p><p>Na wat zoekwerk vond ik de truuk:</p><pre>datetime(<b>UnixTijd</b>, 'unixepoch', 'localtime')</pre><p>Hierbij moet je "<b>UnixTijd</b>" vervangen met het werkelijke Unix tijd nummer (Int64),. In een query zoiets als dit:</p><pre>INSERT INTO "tvshows" ("tvdbid","lastupdated") VALUES ("123", <b>datetime(1531412877, 'unixepoch', 'localtime')</b> );</pre><p>Hopelijk heeft iemand er wat aan&nbsp;<img src="https://www.tweaking4all.nl/wp-content/themes/tweaking4all/css/images/emoticons/t4a_smile.png" class="t4a_smiley" alt="" width="32" height="32"> </p>]]></content:encoded>
						                            <category domain="https://www.tweaking4all.nl/forum/databases/">Databases</category>                        <dc:creator>Hans</dc:creator>
                        <guid isPermaLink="true">https://www.tweaking4all.nl/forum/databases/sqlite-unix-time-epoch-of-posix-time-omzetten-naar-datetime/#post-447</guid>
                    </item>
							        </channel>
        </rss>
		