{"id":4777,"date":"2015-06-24T21:43:16","date_gmt":"2015-06-24T19:43:16","guid":{"rendered":"http:\/\/www.imacandi.net\/sin\/blog\/?p=4777"},"modified":"2015-06-24T21:43:16","modified_gmt":"2015-06-24T19:43:16","slug":"ms-filetime-unix-time","status":"publish","type":"post","link":"https:\/\/www.imacandi.net\/sin\/blog\/2015\/06\/24\/ms-filetime-unix-time.html","title":{"rendered":"ms filetime &#038; unix time"},"content":{"rendered":"<p style=\"text-align: justify;\">TIL despre FILETIME, adica cum tine Microsoft timpul.<\/p>\n<p style=\"text-align: justify;\">FILETIME inseamna cate perioade de 100ns au trecut de la 1 Ianuarie 1601 pana la momentul asta si este pe 64 de biti, sa aiba loc sa bage timp :)<\/p>\n<p style=\"text-align: justify;\">Formula de transformare in UNIX time, adica secunde trecute de la 1 Ianuarie 1970 pana acum este in felul urmator pentru o valoare a FILETIME de\u00a0130796482290000000:<\/p>\n<pre style=\"text-align: justify;\">EPOCH_DIFF =\u00a0<span class=\"mi\">116444736000000000\r\n<\/span>RATE_DIFF =\u00a0<span class=\"mi\">10000000\r\n<\/span>INTERMEDIATE_RESULT = (130796482290000000 - EPOCH_DIFF) \/ RATE_DIFF\r\nRESULT = (INTERMEDIATE_RESULT * 1000)<\/pre>\n<p style=\"text-align: justify;\">Din RESULT se se iau primele zece cifre si rezulta UNIX TIME (epoch), adica\u00a01435174629 care traduce in &#8220;Wed, 24 Jun 2015 19:37:09 GMT&#8221; (toate calculele se fac UTC).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>TIL despre FILETIME, adica cum tine Microsoft timpul. FILETIME inseamna cate perioade de 100ns au trecut de la 1 Ianuarie 1601 pana la momentul asta si este pe 64 de biti, sa aiba loc sa bage timp :) Formula de transformare in UNIX time, adica secunde trecute de la 1 Ianuarie 1970 pana acum este &hellip; <a href=\"https:\/\/www.imacandi.net\/sin\/blog\/2015\/06\/24\/ms-filetime-unix-time.html\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">ms filetime &#038; unix time<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"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,"ngg_post_thumbnail":0,"footnotes":""},"categories":[2],"tags":[7],"class_list":["post-4777","post","type-post","status-publish","format-standard","hentry","category-diverse","tag-computers"],"_links":{"self":[{"href":"https:\/\/www.imacandi.net\/sin\/blog\/wp-json\/wp\/v2\/posts\/4777","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.imacandi.net\/sin\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.imacandi.net\/sin\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.imacandi.net\/sin\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.imacandi.net\/sin\/blog\/wp-json\/wp\/v2\/comments?post=4777"}],"version-history":[{"count":1,"href":"https:\/\/www.imacandi.net\/sin\/blog\/wp-json\/wp\/v2\/posts\/4777\/revisions"}],"predecessor-version":[{"id":4778,"href":"https:\/\/www.imacandi.net\/sin\/blog\/wp-json\/wp\/v2\/posts\/4777\/revisions\/4778"}],"wp:attachment":[{"href":"https:\/\/www.imacandi.net\/sin\/blog\/wp-json\/wp\/v2\/media?parent=4777"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.imacandi.net\/sin\/blog\/wp-json\/wp\/v2\/categories?post=4777"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.imacandi.net\/sin\/blog\/wp-json\/wp\/v2\/tags?post=4777"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}