{"id":11938,"date":"2022-09-27T12:23:15","date_gmt":"2022-09-27T12:23:15","guid":{"rendered":"https:\/\/www.webhozz.com\/blog\/?p=11938"},"modified":"2023-05-11T06:24:57","modified_gmt":"2023-05-11T06:24:57","slug":"php-date-time","status":"publish","type":"post","link":"https:\/\/www.webhozz.com\/blog\/php-date-time\/","title":{"rendered":"PHP : Date &#038; Time"},"content":{"rendered":"\n<h5 class=\"wp-block-heading\">Fungsi PHP Date()<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Fungsi PHP&nbsp;<strong><em>date()<\/em><\/strong>&nbsp;mengonversi timestamp menjadi tanggal dan waktu yang lebih mudah dibaca.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Komputer menyimpan tanggal dan waktu dalam format yang disebut UNIX Timestamp, yang mengukur waktu beberapa detik sejak dimulainya masa Unix (tengah malam Greenwich jatuh pada 1 Januari 1970 yaitu 1 Januari 1970 00:00:00 GMT) .<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Karena ini adalah format yang tidak praktis untuk dibaca manusia, PHP mengonversi timestamp menjadi format yang dapat dibaca oleh manusia dan tanggal dari notasi kalian menjadi timestamp yang dapat dipahami oleh komputer. Sintaks fungsi PHP&nbsp;<strong><em>date()<\/em><\/strong>&nbsp;dapat diberikan dengan:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\ndate(format, timestamp)\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">Diperlukan parameter format dalam fungsi&nbsp;<strong><em>date()<\/em><\/strong>&nbsp;yang menentukan format tanggal dan waktu yang dikembalikan. Namun&nbsp;<em>timestamp<\/em>&nbsp;adalah parameter opsional, jika tidak disertakan maka tanggal dan waktu saat ini akan digunakan. Pernyataan berikut menampilkan tanggal hari ini:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\n&lt;?php\n$today = date(&quot;d\/m\/Y&quot;);\necho $today;\n?&gt;\n<\/pre><\/div>\n\n\n<h5 class=\"wp-block-heading\">Memformat Tanggal dan Waktu dengan PHP<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Parameter format fungsi&nbsp;<strong><em>date()<\/em><\/strong>&nbsp;sebenarnya adalah string yang dapat berisi banyak karakter yang memungkinkan kalian untuk membuat string tanggal yang mengandung berbagai komponen tanggal dan waktu, seperti hari dalam seminggu, pagi atau sore, dll. Berikut adalah beberapa karakter pemformatan terkait tanggal yang umum digunakan dalam format string:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>d \u2013 Mewakili hari dalam sebulan; dua digit dengan angka nol di depan (01 atau 31)<\/li><li>D \u2013 Mewakili hari dalam teks sebagai singkatan (Senin sampai Minggu)<\/li><li>m \u2013 Mewakili angka dalam bulan dengan angka nol di depan (01 atau 12)<\/li><li>M \u2013 Mewakili bulan dalam teks, disingkat (Jan sampai Dec)<\/li><li>y \u2013 Mewakili tahun dalam dua digit (08 atau 14)<\/li><li>Y \u2013 Mewakili tahun dalam empat digit (2008 atau 2014)<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Bagian-bagian tanggal dapat dipisahkan dengan memasukkan karakter lain, seperti tanda hubung (&nbsp;<strong>\u2013<\/strong>&nbsp;), titik (&nbsp;<strong>.<\/strong>&nbsp;), Garis miring (&nbsp;<strong>\/<\/strong>&nbsp;), atau spasi untuk menambahkan pemformatan visual tambahan.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\n&lt;?php\necho date(&quot;d\/m\/Y&quot;) . &quot;&lt;br&gt;&quot;;\necho date(&quot;d-m-Y&quot;) . &quot;&lt;br&gt;&quot;;\necho date(&quot;d.m.Y&quot;);\n?&gt;\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">Kalian juga dapat menggunakan karakter berikut untuk memformat string waktu:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>h \u2013 Mewakili jam dalam format 12 jam dengan angka nol di depan (01 hingga 12)<\/li><li>H \u2013 Mewakili jam dalam format 24 jam dengan angka nol di depan (00 hingga 23)<\/li><li>i \u2013 Mewakili menit dengan angka nol di depan (00 hingga 59)<\/li><li>s \u2013 Mewakili detik dengan nol di depan (00 hingga 59)<\/li><li>a \u2013 Mewakili huruf kecil antidi meridiem dan pos meridiem (am atau pm)<\/li><li>A \u2013 Mewakili huruf besar Antidi meridiem dan Post meridiem (AM atau PM)<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Kode PHP dalam contoh berikut menampilkan tanggal dalam berbagai format:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\n&lt;?php\necho date(&quot;h:i:s&quot;) . &quot;&lt;br&gt;&quot;;\necho date(&quot;F d, Y h:i:s A&quot;) . &quot;&lt;br&gt;&quot;;\necho date(&quot;h:i a&quot;);\n?&gt;\n<\/pre><\/div>\n\n\n<h5 class=\"wp-block-heading\">Fungsi PHP time()<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Fungsi&nbsp;<strong><em>time()<\/em><\/strong>&nbsp;digunakan untuk mendapatkan waktu saat ini sebagai Unix timestamp (jumlah detik sejak awal masa Unix: 1 Januari 1970 00:00:00 GMT).<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\n&lt;?php\n\/\/ Executed at March 05, 2014 07:19:18\n$timestamp = time();\necho($timestamp);\n?&gt;\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">Contoh di atas menghasilkan output berikut.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.webhozz.com\/code\/wp-content\/uploads\/2019\/09\/Untitled-1-18.jpg\" alt=\"\" class=\"wp-image-465\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Kita dapat mengonversi timestamp ini menjadi tanggal yang dapat dibaca manusia dengan mengirimkannya ke fungsi&nbsp;<strong><em>date()<\/em><\/strong>&nbsp;yang sudah dibahas sebelumnya.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\n&lt;?php\n$timestamp = 1394003958;\necho(date(&quot;F d, Y h:i:s&quot;, $timestamp));\n?&gt;\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">Contoh di atas menghasilkan output berikut.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.webhozz.com\/code\/wp-content\/uploads\/2019\/09\/Untitled-1-19.jpg\" alt=\"\" class=\"wp-image-466\"\/><\/figure>\n\n\n\n<h5 class=\"wp-block-heading\">Fungsi PHP mktime()&nbsp;<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Fungsi&nbsp;<strong><em>mktime()<\/em><\/strong>&nbsp;digunakan untuk membuat timestamp berdasarkan tanggal dan waktu tertentu. Jika tidak ada tanggal dan waktu yang disediakan, maka timestamp untuk tanggal dan waktu saat ini dikembalikan.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Sintaks fungsi&nbsp;<strong><em>mktime()<\/em><\/strong>&nbsp;dapat diberikan dengan:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\nmktime(hour, minute, second, month, day, year)\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">Contoh berikut menampilkan timestamp yang sesuai dengan pukul 3:20:12 siang hari pada 10 Mei 2014:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\n&lt;?php\n\/\/ Create the timestamp for a particular date\necho mktime(15, 20, 12, 5, 10, 2014);\n?&gt;\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">Contoh di atas menghasilkan output berikut.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.webhozz.com\/code\/wp-content\/uploads\/2019\/09\/Untitled-1-20.jpg\" alt=\"\" class=\"wp-image-467\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Fungsi&nbsp;<strong><em>mktime()<\/em><\/strong>&nbsp;dapat digunakan untuk menemukan nama hari kerja yang sesuai dengan tanggal tertentu. Untuk melakukan ini, cukup gunakan karakter \u2018l\u2019 (huruf kecil \u2018L\u2019) dengan timestamp kalian, seperti dalam contoh berikut, yang menampilkan hari yang jatuh pada 1 April 2014:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\n&lt;?php\n\/\/ Get the weekday name of a particular date\necho date(&#039;l&#039;, mktime(0, 0, 0, 4, 1, 2014));\n?&gt;\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">Contoh di atas menghasilkan output berikut.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.webhozz.com\/code\/wp-content\/uploads\/2019\/09\/Untitled-1-21.jpg\" alt=\"\" class=\"wp-image-468\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Fungsi&nbsp;<strong><em>mktime()<\/em><\/strong>&nbsp;juga dapat digunakan untuk menemukan tanggal tertentu di masa depan setelah periode waktu tertentu. Seperti dalam contoh berikut, yang menampilkan tanggal yang jatuh setelah 30 bulan dari tanggal saat ini?<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\n&lt;?php\n\/\/ Executed at March 05, 2014\n$futureDate = mktime(0, 0, 0, date(&quot;m&quot;)+30, date(&quot;d&quot;), date(&quot;Y&quot;));\necho date(&quot;d\/m\/Y&quot;, $futureDate);\n?&gt;\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">Contoh di atas menghasilkan output berikut.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.webhozz.com\/code\/wp-content\/uploads\/2019\/09\/Untitled-1-22.jpg\" alt=\"\" class=\"wp-image-469\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Fungsi PHP Date() Fungsi PHP&nbsp;date()&nbsp;mengonversi timestamp menjadi tanggal dan waktu yang lebih mudah dibaca. Komputer menyimpan tanggal dan waktu dalam format yang disebut UNIX Timestamp,<\/p>\n","protected":false},"author":1,"featured_media":11872,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-11938","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-belajar-web-programming"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>PHP : Date &amp; Time - WebHozz Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.webhozz.com\/blog\/php-date-time\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PHP : Date &amp; Time - WebHozz Blog\" \/>\n<meta property=\"og:description\" content=\"Fungsi PHP Date() Fungsi PHP&nbsp;date()&nbsp;mengonversi timestamp menjadi tanggal dan waktu yang lebih mudah dibaca. Komputer menyimpan tanggal dan waktu dalam format yang disebut UNIX Timestamp,\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.webhozz.com\/blog\/php-date-time\/\" \/>\n<meta property=\"og:site_name\" content=\"WebHozz Blog\" \/>\n<meta property=\"article:published_time\" content=\"2022-09-27T12:23:15+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-05-11T06:24:57+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.webhozz.com\/blog\/wp-content\/uploads\/2022\/09\/PHP_1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"750\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\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:\\\/\\\/www.webhozz.com\\\/blog\\\/php-date-time\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/php-date-time\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/#\\\/schema\\\/person\\\/d5f539ad171dc74baaf6a98dfef6fcef\"},\"headline\":\"PHP : Date &#038; Time\",\"datePublished\":\"2022-09-27T12:23:15+00:00\",\"dateModified\":\"2023-05-11T06:24:57+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/php-date-time\\\/\"},\"wordCount\":558,\"publisher\":{\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/php-date-time\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/PHP_1.jpg\",\"articleSection\":[\"Belajar Web Programming\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/php-date-time\\\/\",\"url\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/php-date-time\\\/\",\"name\":\"PHP : Date & Time - WebHozz Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/php-date-time\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/php-date-time\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/PHP_1.jpg\",\"datePublished\":\"2022-09-27T12:23:15+00:00\",\"dateModified\":\"2023-05-11T06:24:57+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/php-date-time\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/php-date-time\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/php-date-time\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/PHP_1.jpg\",\"contentUrl\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/PHP_1.jpg\",\"width\":\"750\",\"height\":\"400\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/php-date-time\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PHP : Date &#038; Time\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/\",\"name\":\"WebHozz Blog\",\"description\":\"Kursus Web &amp; Android di Jakarta Bandung\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/#organization\",\"name\":\"WebHozz\",\"url\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/04\\\/logo-persegi.jpg\",\"contentUrl\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/04\\\/logo-persegi.jpg\",\"width\":442,\"height\":442,\"caption\":\"WebHozz\"},\"image\":{\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/#\\\/schema\\\/person\\\/d5f539ad171dc74baaf6a98dfef6fcef\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bff35e4083f3870e2f911c4437e788147d340f274268d361dd7e1cf20bebb156?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bff35e4083f3870e2f911c4437e788147d340f274268d361dd7e1cf20bebb156?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bff35e4083f3870e2f911c4437e788147d340f274268d361dd7e1cf20bebb156?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"url\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"PHP : Date & Time - WebHozz Blog","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:\/\/www.webhozz.com\/blog\/php-date-time\/","og_locale":"en_US","og_type":"article","og_title":"PHP : Date & Time - WebHozz Blog","og_description":"Fungsi PHP Date() Fungsi PHP&nbsp;date()&nbsp;mengonversi timestamp menjadi tanggal dan waktu yang lebih mudah dibaca. Komputer menyimpan tanggal dan waktu dalam format yang disebut UNIX Timestamp,","og_url":"https:\/\/www.webhozz.com\/blog\/php-date-time\/","og_site_name":"WebHozz Blog","article_published_time":"2022-09-27T12:23:15+00:00","article_modified_time":"2023-05-11T06:24:57+00:00","og_image":[{"width":750,"height":400,"url":"https:\/\/www.webhozz.com\/blog\/wp-content\/uploads\/2022\/09\/PHP_1.jpg","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.webhozz.com\/blog\/php-date-time\/#article","isPartOf":{"@id":"https:\/\/www.webhozz.com\/blog\/php-date-time\/"},"author":{"name":"admin","@id":"https:\/\/www.webhozz.com\/blog\/#\/schema\/person\/d5f539ad171dc74baaf6a98dfef6fcef"},"headline":"PHP : Date &#038; Time","datePublished":"2022-09-27T12:23:15+00:00","dateModified":"2023-05-11T06:24:57+00:00","mainEntityOfPage":{"@id":"https:\/\/www.webhozz.com\/blog\/php-date-time\/"},"wordCount":558,"publisher":{"@id":"https:\/\/www.webhozz.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.webhozz.com\/blog\/php-date-time\/#primaryimage"},"thumbnailUrl":"https:\/\/www.webhozz.com\/blog\/wp-content\/uploads\/2022\/09\/PHP_1.jpg","articleSection":["Belajar Web Programming"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.webhozz.com\/blog\/php-date-time\/","url":"https:\/\/www.webhozz.com\/blog\/php-date-time\/","name":"PHP : Date & Time - WebHozz Blog","isPartOf":{"@id":"https:\/\/www.webhozz.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.webhozz.com\/blog\/php-date-time\/#primaryimage"},"image":{"@id":"https:\/\/www.webhozz.com\/blog\/php-date-time\/#primaryimage"},"thumbnailUrl":"https:\/\/www.webhozz.com\/blog\/wp-content\/uploads\/2022\/09\/PHP_1.jpg","datePublished":"2022-09-27T12:23:15+00:00","dateModified":"2023-05-11T06:24:57+00:00","breadcrumb":{"@id":"https:\/\/www.webhozz.com\/blog\/php-date-time\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.webhozz.com\/blog\/php-date-time\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webhozz.com\/blog\/php-date-time\/#primaryimage","url":"https:\/\/www.webhozz.com\/blog\/wp-content\/uploads\/2022\/09\/PHP_1.jpg","contentUrl":"https:\/\/www.webhozz.com\/blog\/wp-content\/uploads\/2022\/09\/PHP_1.jpg","width":"750","height":"400"},{"@type":"BreadcrumbList","@id":"https:\/\/www.webhozz.com\/blog\/php-date-time\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.webhozz.com\/blog\/"},{"@type":"ListItem","position":2,"name":"PHP : Date &#038; Time"}]},{"@type":"WebSite","@id":"https:\/\/www.webhozz.com\/blog\/#website","url":"https:\/\/www.webhozz.com\/blog\/","name":"WebHozz Blog","description":"Kursus Web &amp; Android di Jakarta Bandung","publisher":{"@id":"https:\/\/www.webhozz.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.webhozz.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.webhozz.com\/blog\/#organization","name":"WebHozz","url":"https:\/\/www.webhozz.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webhozz.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.webhozz.com\/blog\/wp-content\/uploads\/2018\/04\/logo-persegi.jpg","contentUrl":"https:\/\/www.webhozz.com\/blog\/wp-content\/uploads\/2018\/04\/logo-persegi.jpg","width":442,"height":442,"caption":"WebHozz"},"image":{"@id":"https:\/\/www.webhozz.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.webhozz.com\/blog\/#\/schema\/person\/d5f539ad171dc74baaf6a98dfef6fcef","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/bff35e4083f3870e2f911c4437e788147d340f274268d361dd7e1cf20bebb156?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/bff35e4083f3870e2f911c4437e788147d340f274268d361dd7e1cf20bebb156?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/bff35e4083f3870e2f911c4437e788147d340f274268d361dd7e1cf20bebb156?s=96&d=mm&r=g","caption":"admin"},"url":"https:\/\/www.webhozz.com\/blog\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.webhozz.com\/blog\/wp-json\/wp\/v2\/posts\/11938","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webhozz.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webhozz.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webhozz.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webhozz.com\/blog\/wp-json\/wp\/v2\/comments?post=11938"}],"version-history":[{"count":2,"href":"https:\/\/www.webhozz.com\/blog\/wp-json\/wp\/v2\/posts\/11938\/revisions"}],"predecessor-version":[{"id":12711,"href":"https:\/\/www.webhozz.com\/blog\/wp-json\/wp\/v2\/posts\/11938\/revisions\/12711"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.webhozz.com\/blog\/wp-json\/wp\/v2\/media\/11872"}],"wp:attachment":[{"href":"https:\/\/www.webhozz.com\/blog\/wp-json\/wp\/v2\/media?parent=11938"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webhozz.com\/blog\/wp-json\/wp\/v2\/categories?post=11938"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webhozz.com\/blog\/wp-json\/wp\/v2\/tags?post=11938"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}