{"id":652,"date":"2022-08-14T15:31:27","date_gmt":"2022-08-14T15:31:27","guid":{"rendered":"https:\/\/insideofcode.com\/blog\/?p=652"},"modified":"2022-08-15T03:49:10","modified_gmt":"2022-08-15T03:49:10","slug":"query-extract-untuk-menangani-timestamp-di-postgresql","status":"publish","type":"post","link":"https:\/\/insideofcode.com\/blog\/query-extract-untuk-menangani-timestamp-di-postgresql\/","title":{"rendered":"Query EXTRACT untuk menangani TIMESTAMP di Postgresql"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Pendahuluan<\/h2>\n\n\n\n<p>Postgresql merupakan software database berbasis relasi yang cukup powerfull untuk aplikasi kecil maupun besar, developer yang masih baru maupun lama menggunakan postgresql terkadang masih melakukan kesalahan dalam menangani permasalahan dengan format data <strong><em>timestamp<\/em><\/strong>. <\/p>\n\n\n\n<p>Misalkan kita mau mengambil tahun dari suatu kolom dengan format data <strong><em>timestamp<\/em><\/strong> misalnya <code>'2022-04-09 10:09:11'<\/code> masih ada yang menggunakan fungsi LEFT(column_name, 4) meskipun itu bisa dilakukan akan tetapi sebenarnya postgresql sendiri sudah ada fungsi <code>EXTRACT<\/code> yang khusus untuk menangani permasalahan tersebut. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Fungsi EXTRACT postgresql<\/h2>\n\n\n\n<p>Fungsi EXTRACT dapat digunakan untuk mengambil bagian-bagian tertentu dari data dengan format datetime.<\/p>\n\n\n\n<p>Baca Juga : <a href=\"https:\/\/insideofcode.com\/blog\/grafana-dan-prometheus-untuk-monitoring-server-linux\/\">Memantau Server Linux dengan Grafana dan Prometheus<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Penulisan Query EXTRACT (Syntax)<\/h2>\n\n\n\n<p>Berikut ini gambaran syntax query fungsi EXTRACT:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"sql\" class=\"language-sql\">EXTRACT(field FROM source)<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Keterangan (<em>Arguments<\/em>) :<\/h3>\n\n\n\n<p>Fungsi query <code>EXTRACT()<\/code> ini memiliki dua argumen wajib :<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. field<\/h3>\n\n\n\n<p>Argumen <code>field<\/code> menentukan bagian mana yang mau diekstrak dari value tanggal\/waktu, berikut ini table informasi field yang bisa digunakan pada fungsi <code>EXTRACT()<\/code>.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><th>Field Value<\/th><th>TIMESTAMP<\/th><th>Interval<\/th><\/tr><tr><td>CENTURY<\/td><td>The century (abad)<\/td><td>The number of centuries<\/td><\/tr><tr><td>DAY<\/td><td>The day of the month (1-31)<\/td><td>The number of days<\/td><\/tr><tr><td>DECADE<\/td><td>The decade that is the year divided by 10<\/td><td>Sames as TIMESTAMP<\/td><\/tr><tr><td>DOW<\/td><td>The day of week Sunday (0) to Saturday (6)<\/td><td>N\/A<\/td><\/tr><tr><td>DOY<\/td><td>The day of year that ranges from 1 to 366<\/td><td>N\/A<\/td><\/tr><tr><td>EPOCH<\/td><td>The number of seconds since 1970-01-01 00:00:00 UTC<\/td><td>The total number of seconds in the interval<\/td><\/tr><tr><td>HOUR<\/td><td>The hour (0-23)<\/td><td>The number of hours<\/td><\/tr><tr><td>ISODOW<\/td><td>Day of week based on ISO 8601 Monday (1) to Sunday (7)<\/td><td>N\/A<\/td><\/tr><tr><td>ISOYEAR<\/td><td>ISO 8601 week number of year<\/td><td>N\/A<\/td><\/tr><tr><td>MICROSECONDS<\/td><td>The seconds field, including fractional parts, multiplied by 1000000<\/td><td>Sames as TIMESTAMP<\/td><\/tr><tr><td>MILLENNIUM<\/td><td>The millennium<\/td><td>The number of millennium<\/td><\/tr><tr><td>MILLISECONDS<\/td><td>The seconds field, including fractional parts, multiplied by 1000<\/td><td>Sames as TIMESTAMP<\/td><\/tr><tr><td>MINUTE<\/td><td>The minute (0-59)<\/td><td>The number of minutes<\/td><\/tr><tr><td>MONTH<\/td><td>Month, 1-12<\/td><td>The number of months, modulo (0-11)<\/td><\/tr><tr><td>QUARTER<\/td><td>Quarter of the year<\/td><td>The number of quarters<\/td><\/tr><tr><td>SECOND<\/td><td>The second<\/td><td>The number of seconds<\/td><\/tr><tr><td>TIMEZONE<\/td><td>The timezone offset from UTC, measured in seconds<\/td><td>N\/A<\/td><\/tr><tr><td>TIMEZONE_HOUR<\/td><td>The hour component of the time zone offset<\/td><td>N\/A<\/td><\/tr><tr><td>TIMEZONE_MINUTE<\/td><td>The minute component of the time zone offset<\/td><td>N\/A<\/td><\/tr><tr><td>WEEK<\/td><td>The number of the&nbsp;ISO&nbsp;8601 week-numbering week of the year<\/td><td>N\/A<\/td><\/tr><tr><td>YEAR<\/td><td>The year<\/td><td>Sames as TIMESTAMP<\/td><\/tr><\/tbody><\/table><figcaption>Table informasi field pada fungsi EXTRACT() query postgresql<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">2. source<\/h3>\n\n\n\n<p>Pada bagian argument source merupakan nilai dengan tipe data <strong><em>timestamp<\/em><\/strong> yang datanya mau diekstrak. Pada bagian ini juga bisa diisi dengan nama column dengan tipe data timestamp atau datetime tetapi jika  anda mengisinya dengan format <code>date<\/code> maka akan otomatis di <em>convert<\/em> ke timestamp jadi untuk bagian jam, menit, detiknya secara default jadi 00:00:00.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Contoh penggunaan fungsi query EXTRACT<\/h2>\n\n\n\n<p>Berikut ini adalah beberapa contoh penggunaan query <code>EXTRACT()<\/code><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Contoh ekstrak dari kolom suatu table<\/h3>\n\n\n\n<p>Mengekstrak tahun dari kolom dengan tipe data <code>timestamp<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"sql\" class=\"language-sql\">SELECT id, created_at, EXTRACT(YEAR FROM created_at) as created_year FROM users;<\/code><\/pre>\n\n\n\n<p>akan memberikan hasil sebagai berikut:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\"> id |     created_at      | created_year \n----+---------------------+--------------\n  1 | 2021-12-07 12:09:08 |         2021\n  2 | 2021-07-04 22:20:10 |         2021\n  3 | 2021-07-24 11:18:44 |         2021\n  4 | 2021-07-30 17:57:51 |         2021\n  5 | 2021-07-31 22:08:17 |         2021\n(5 rows)<\/code><\/pre>\n\n\n\n<p>Selanjutnya car mengekstrak bulan dari kolom dengan tipe data <code>timestamp<\/code> adalah sebagai berikut<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">SELECT id, created_at, EXTRACT(MONTH FROM created_at) as created_month FROM users;<\/code><\/pre>\n\n\n\n<p>akan memberikan hasil sebagai berikut:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\"> id |     created_at      | created_month \n----+---------------------+--------------\n  1 | 2021-12-07 12:09:08 |         12\n  2 | 2021-07-04 22:20:10 |          7\n  3 | 2021-07-24 11:18:44 |          7\n  4 | 2021-07-30 17:57:51 |          7\n  5 | 2021-07-31 22:08:17 |          7\n(5 rows)<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Kesimpulan<\/h2>\n\n\n\n<p>Bagaimana, apakah sudah paham cara penggunaannya ? supaya lebih paham silahkan pelajari sambil di peraktikan.<\/p>\n\n\n\n<p>Sekian, salam coder&#8217;s..<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Referensi<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/www.postgresqltutorial.com\/postgresql-date-functions\/postgresql-extract\/\n\">https:\/\/www.postgresqltutorial.com\/postgresql-date-functions\/postgresql-extract\/<\/a><\/li><li><a href=\"https:\/\/www.postgresql.org\/docs\/current\/functions-datetime.html#FUNCTIONS-DATETIME-EXTRACT\">https:\/\/www.postgresql.org\/docs\/current\/functions-datetime.html#FUNCTIONS-DATETIME-EXTRACT<\/a><\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Postgresql merupakan software database berbasis relasi yang cukup powerfull untuk aplikasi kecil maupun besar, developer yang masih baru maupun lama menggunakan postgresql terkadang masih melakukan kesalahan dalam menangani permasalahan dengan format data timestamp. <\/p>\n","protected":false},"author":1,"featured_media":663,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[26,58],"tags":[40,41,59],"class_list":["post-652","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-database-sql","category-postgresql","tag-database","tag-postgresql","tag-query"],"blocksy_meta":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Query EXTRACT untuk menangani TIMESTAMP di Postgresql<\/title>\n<meta name=\"description\" content=\"Query EXTRACT di postgresql merupkan fungsi untuk menangani permasalahan dengan data format timestamp atau datetime.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/insideofcode.com\/blog\/query-extract-untuk-menangani-timestamp-di-postgresql\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Query EXTRACT untuk menangani TIMESTAMP di Postgresql\" \/>\n<meta property=\"og:description\" content=\"Query EXTRACT di postgresql merupkan fungsi untuk menangani permasalahan dengan data format timestamp atau datetime.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/insideofcode.com\/blog\/query-extract-untuk-menangani-timestamp-di-postgresql\/\" \/>\n<meta property=\"og:site_name\" content=\"Inside of Code\" \/>\n<meta property=\"article:published_time\" content=\"2022-08-14T15:31:27+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-08-15T03:49:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/insideofcode.com\/wp-content\/uploads\/2022\/08\/query-EXTRACT-di-postgresql.png\" \/>\n\t<meta property=\"og:image:width\" content=\"500\" \/>\n\t<meta property=\"og:image:height\" content=\"300\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Dani\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Dani\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/insideofcode.com\/blog\/query-extract-untuk-menangani-timestamp-di-postgresql\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/insideofcode.com\/blog\/query-extract-untuk-menangani-timestamp-di-postgresql\/\"},\"author\":{\"name\":\"Dani\",\"@id\":\"https:\/\/insideofcode.com\/blog\/#\/schema\/person\/1c6cafc6659067aa7ac1fd1a5ced218d\"},\"headline\":\"Query EXTRACT untuk menangani TIMESTAMP di Postgresql\",\"datePublished\":\"2022-08-14T15:31:27+00:00\",\"dateModified\":\"2022-08-15T03:49:10+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/insideofcode.com\/blog\/query-extract-untuk-menangani-timestamp-di-postgresql\/\"},\"wordCount\":510,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/insideofcode.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/insideofcode.com\/blog\/query-extract-untuk-menangani-timestamp-di-postgresql\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/insideofcode.com\/wp-content\/uploads\/2022\/08\/query-EXTRACT-di-postgresql.png\",\"keywords\":[\"database\",\"postgresql\",\"query\"],\"articleSection\":[\"Database (SQL)\",\"Postgresql\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/insideofcode.com\/blog\/query-extract-untuk-menangani-timestamp-di-postgresql\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/insideofcode.com\/blog\/query-extract-untuk-menangani-timestamp-di-postgresql\/\",\"url\":\"https:\/\/insideofcode.com\/blog\/query-extract-untuk-menangani-timestamp-di-postgresql\/\",\"name\":\"Query EXTRACT untuk menangani TIMESTAMP di Postgresql\",\"isPartOf\":{\"@id\":\"https:\/\/insideofcode.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/insideofcode.com\/blog\/query-extract-untuk-menangani-timestamp-di-postgresql\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/insideofcode.com\/blog\/query-extract-untuk-menangani-timestamp-di-postgresql\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/insideofcode.com\/wp-content\/uploads\/2022\/08\/query-EXTRACT-di-postgresql.png\",\"datePublished\":\"2022-08-14T15:31:27+00:00\",\"dateModified\":\"2022-08-15T03:49:10+00:00\",\"description\":\"Query EXTRACT di postgresql merupkan fungsi untuk menangani permasalahan dengan data format timestamp atau datetime.\",\"breadcrumb\":{\"@id\":\"https:\/\/insideofcode.com\/blog\/query-extract-untuk-menangani-timestamp-di-postgresql\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/insideofcode.com\/blog\/query-extract-untuk-menangani-timestamp-di-postgresql\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/insideofcode.com\/blog\/query-extract-untuk-menangani-timestamp-di-postgresql\/#primaryimage\",\"url\":\"https:\/\/insideofcode.com\/wp-content\/uploads\/2022\/08\/query-EXTRACT-di-postgresql.png\",\"contentUrl\":\"https:\/\/insideofcode.com\/wp-content\/uploads\/2022\/08\/query-EXTRACT-di-postgresql.png\",\"width\":500,\"height\":300,\"caption\":\"Query EXTRACT di Postgresql\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/insideofcode.com\/blog\/query-extract-untuk-menangani-timestamp-di-postgresql\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/insideofcode.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Query EXTRACT untuk menangani TIMESTAMP di Postgresql\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/insideofcode.com\/blog\/#website\",\"url\":\"https:\/\/insideofcode.com\/blog\/\",\"name\":\"Inside of Code\",\"description\":\"A software engineer who wants to share what he has learned, and document his journey.\",\"publisher\":{\"@id\":\"https:\/\/insideofcode.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/insideofcode.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/insideofcode.com\/blog\/#organization\",\"name\":\"Inside of Code\",\"url\":\"https:\/\/insideofcode.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/insideofcode.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/insideofcode.com\/wp-content\/uploads\/2022\/10\/logo-ioc.png\",\"contentUrl\":\"https:\/\/insideofcode.com\/wp-content\/uploads\/2022\/10\/logo-ioc.png\",\"width\":324,\"height\":324,\"caption\":\"Inside of Code\"},\"image\":{\"@id\":\"https:\/\/insideofcode.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/insideofcode.com\/blog\/#\/schema\/person\/1c6cafc6659067aa7ac1fd1a5ced218d\",\"name\":\"Dani\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/insideofcode.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/a4b1e4251720747aef0418e09fe0f6e7786ff89358b57f76822f1c52c286552b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/a4b1e4251720747aef0418e09fe0f6e7786ff89358b57f76822f1c52c286552b?s=96&d=mm&r=g\",\"caption\":\"Dani\"},\"sameAs\":[\"https:\/\/insideofcode.com\/blog\"],\"url\":\"https:\/\/insideofcode.com\/blog\/author\/daniwork\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Query EXTRACT untuk menangani TIMESTAMP di Postgresql","description":"Query EXTRACT di postgresql merupkan fungsi untuk menangani permasalahan dengan data format timestamp atau datetime.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/insideofcode.com\/blog\/query-extract-untuk-menangani-timestamp-di-postgresql\/","og_locale":"en_US","og_type":"article","og_title":"Query EXTRACT untuk menangani TIMESTAMP di Postgresql","og_description":"Query EXTRACT di postgresql merupkan fungsi untuk menangani permasalahan dengan data format timestamp atau datetime.","og_url":"https:\/\/insideofcode.com\/blog\/query-extract-untuk-menangani-timestamp-di-postgresql\/","og_site_name":"Inside of Code","article_published_time":"2022-08-14T15:31:27+00:00","article_modified_time":"2022-08-15T03:49:10+00:00","og_image":[{"width":500,"height":300,"url":"https:\/\/insideofcode.com\/wp-content\/uploads\/2022\/08\/query-EXTRACT-di-postgresql.png","type":"image\/png"}],"author":"Dani","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Dani","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/insideofcode.com\/blog\/query-extract-untuk-menangani-timestamp-di-postgresql\/#article","isPartOf":{"@id":"https:\/\/insideofcode.com\/blog\/query-extract-untuk-menangani-timestamp-di-postgresql\/"},"author":{"name":"Dani","@id":"https:\/\/insideofcode.com\/blog\/#\/schema\/person\/1c6cafc6659067aa7ac1fd1a5ced218d"},"headline":"Query EXTRACT untuk menangani TIMESTAMP di Postgresql","datePublished":"2022-08-14T15:31:27+00:00","dateModified":"2022-08-15T03:49:10+00:00","mainEntityOfPage":{"@id":"https:\/\/insideofcode.com\/blog\/query-extract-untuk-menangani-timestamp-di-postgresql\/"},"wordCount":510,"commentCount":0,"publisher":{"@id":"https:\/\/insideofcode.com\/blog\/#organization"},"image":{"@id":"https:\/\/insideofcode.com\/blog\/query-extract-untuk-menangani-timestamp-di-postgresql\/#primaryimage"},"thumbnailUrl":"https:\/\/insideofcode.com\/wp-content\/uploads\/2022\/08\/query-EXTRACT-di-postgresql.png","keywords":["database","postgresql","query"],"articleSection":["Database (SQL)","Postgresql"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/insideofcode.com\/blog\/query-extract-untuk-menangani-timestamp-di-postgresql\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/insideofcode.com\/blog\/query-extract-untuk-menangani-timestamp-di-postgresql\/","url":"https:\/\/insideofcode.com\/blog\/query-extract-untuk-menangani-timestamp-di-postgresql\/","name":"Query EXTRACT untuk menangani TIMESTAMP di Postgresql","isPartOf":{"@id":"https:\/\/insideofcode.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/insideofcode.com\/blog\/query-extract-untuk-menangani-timestamp-di-postgresql\/#primaryimage"},"image":{"@id":"https:\/\/insideofcode.com\/blog\/query-extract-untuk-menangani-timestamp-di-postgresql\/#primaryimage"},"thumbnailUrl":"https:\/\/insideofcode.com\/wp-content\/uploads\/2022\/08\/query-EXTRACT-di-postgresql.png","datePublished":"2022-08-14T15:31:27+00:00","dateModified":"2022-08-15T03:49:10+00:00","description":"Query EXTRACT di postgresql merupkan fungsi untuk menangani permasalahan dengan data format timestamp atau datetime.","breadcrumb":{"@id":"https:\/\/insideofcode.com\/blog\/query-extract-untuk-menangani-timestamp-di-postgresql\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/insideofcode.com\/blog\/query-extract-untuk-menangani-timestamp-di-postgresql\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/insideofcode.com\/blog\/query-extract-untuk-menangani-timestamp-di-postgresql\/#primaryimage","url":"https:\/\/insideofcode.com\/wp-content\/uploads\/2022\/08\/query-EXTRACT-di-postgresql.png","contentUrl":"https:\/\/insideofcode.com\/wp-content\/uploads\/2022\/08\/query-EXTRACT-di-postgresql.png","width":500,"height":300,"caption":"Query EXTRACT di Postgresql"},{"@type":"BreadcrumbList","@id":"https:\/\/insideofcode.com\/blog\/query-extract-untuk-menangani-timestamp-di-postgresql\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/insideofcode.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Query EXTRACT untuk menangani TIMESTAMP di Postgresql"}]},{"@type":"WebSite","@id":"https:\/\/insideofcode.com\/blog\/#website","url":"https:\/\/insideofcode.com\/blog\/","name":"Inside of Code","description":"A software engineer who wants to share what he has learned, and document his journey.","publisher":{"@id":"https:\/\/insideofcode.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/insideofcode.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/insideofcode.com\/blog\/#organization","name":"Inside of Code","url":"https:\/\/insideofcode.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/insideofcode.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/insideofcode.com\/wp-content\/uploads\/2022\/10\/logo-ioc.png","contentUrl":"https:\/\/insideofcode.com\/wp-content\/uploads\/2022\/10\/logo-ioc.png","width":324,"height":324,"caption":"Inside of Code"},"image":{"@id":"https:\/\/insideofcode.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/insideofcode.com\/blog\/#\/schema\/person\/1c6cafc6659067aa7ac1fd1a5ced218d","name":"Dani","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/insideofcode.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/a4b1e4251720747aef0418e09fe0f6e7786ff89358b57f76822f1c52c286552b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a4b1e4251720747aef0418e09fe0f6e7786ff89358b57f76822f1c52c286552b?s=96&d=mm&r=g","caption":"Dani"},"sameAs":["https:\/\/insideofcode.com\/blog"],"url":"https:\/\/insideofcode.com\/blog\/author\/daniwork\/"}]}},"_links":{"self":[{"href":"https:\/\/insideofcode.com\/blog\/wp-json\/wp\/v2\/posts\/652","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/insideofcode.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/insideofcode.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/insideofcode.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/insideofcode.com\/blog\/wp-json\/wp\/v2\/comments?post=652"}],"version-history":[{"count":0,"href":"https:\/\/insideofcode.com\/blog\/wp-json\/wp\/v2\/posts\/652\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/insideofcode.com\/blog\/wp-json\/wp\/v2\/media\/663"}],"wp:attachment":[{"href":"https:\/\/insideofcode.com\/blog\/wp-json\/wp\/v2\/media?parent=652"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/insideofcode.com\/blog\/wp-json\/wp\/v2\/categories?post=652"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/insideofcode.com\/blog\/wp-json\/wp\/v2\/tags?post=652"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}