{"id":18,"date":"2009-08-08T20:18:46","date_gmt":"2009-08-08T20:18:46","guid":{"rendered":"http:\/\/www.adriangrigoras.com\/blog\/?p=18"},"modified":"2009-08-08T20:18:46","modified_gmt":"2009-08-08T20:18:46","slug":"find-the-date-of-a-file-with-perl","status":"publish","type":"post","link":"https:\/\/adriangrigoras.com\/blog\/find-the-date-of-a-file-with-perl\/","title":{"rendered":"Find the date of a file with Perl"},"content":{"rendered":"<p>I need to do an incremental download and I need to know the date of the previews file. I found an interesting function in Perl:<\/p>\n<blockquote>\n<address>my $date = localtime( (stat HANDLE)[9] );<\/address>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>I need to do an incremental download and I need to know the date of the previews file. I found an interesting function in Perl: my $date = localtime( (stat HANDLE)[9] );<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"class_list":["post-18","post","type-post","status-publish","format-standard","hentry","category-perl"],"_links":{"self":[{"href":"https:\/\/adriangrigoras.com\/blog\/wp-json\/wp\/v2\/posts\/18","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/adriangrigoras.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/adriangrigoras.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/adriangrigoras.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/adriangrigoras.com\/blog\/wp-json\/wp\/v2\/comments?post=18"}],"version-history":[{"count":0,"href":"https:\/\/adriangrigoras.com\/blog\/wp-json\/wp\/v2\/posts\/18\/revisions"}],"wp:attachment":[{"href":"https:\/\/adriangrigoras.com\/blog\/wp-json\/wp\/v2\/media?parent=18"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/adriangrigoras.com\/blog\/wp-json\/wp\/v2\/categories?post=18"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/adriangrigoras.com\/blog\/wp-json\/wp\/v2\/tags?post=18"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}