{"id":179,"date":"2009-05-27T07:55:47","date_gmt":"2009-05-27T14:55:47","guid":{"rendered":"http:\/\/cknotes.com\/?p=179"},"modified":"2009-05-27T07:55:47","modified_gmt":"2009-05-27T14:55:47","slug":"datetime-properties-in-ruby","status":"publish","type":"post","link":"https:\/\/cknotes.com\/datetime-properties-in-ruby\/","title":{"rendered":"Date\/Time Properties in Ruby"},"content":{"rendered":"<p>This is an example that generally applies to all methods\/properties in the Chilkat API&#8217;s that return a date\/time (for the Ruby programming language)<\/p>\n<pre>sysTime = Chilkat::SYSTEMTIME.new()\r\n\r\n# Get the last-mod date\/time\r\nfileObj.GetLastModifiedTime(sysTime)\r\nlastModTime = sysTime.wMonth.to_s()\r\nlastModTime = lastModTime + \"\/\" + sysTime.wDay.to_s()\r\nlastModTime = lastModTime + \"\/\" + sysTime.wYear.to_s()\r\nlastModTime = lastModTime + \" \" + sysTime.wHour.to_s()\r\nlastModTime = lastModTime + \":\" + sysTime.wMinute.to_s()\r\nlastModTime = lastModTime + \":\" + sysTime.wSecond.to_s()\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>This is an example that generally applies to all methods\/properties in the Chilkat API&#8217;s that return a date\/time (for the Ruby programming language) sysTime = Chilkat::SYSTEMTIME.new() # Get the last-mod date\/time fileObj.GetLastModifiedTime(sysTime) lastModTime = sysTime.wMonth.to_s() lastModTime = lastModTime + &#8220;\/&#8221; + sysTime.wDay.to_s() lastModTime = lastModTime + &#8220;\/&#8221; + sysTime.wYear.to_s() lastModTime = lastModTime + &#8221; &#8221; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[508],"class_list":["post-179","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-ruby"],"_links":{"self":[{"href":"https:\/\/cknotes.com\/wp-json\/wp\/v2\/posts\/179","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cknotes.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cknotes.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cknotes.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cknotes.com\/wp-json\/wp\/v2\/comments?post=179"}],"version-history":[{"count":0,"href":"https:\/\/cknotes.com\/wp-json\/wp\/v2\/posts\/179\/revisions"}],"wp:attachment":[{"href":"https:\/\/cknotes.com\/wp-json\/wp\/v2\/media?parent=179"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cknotes.com\/wp-json\/wp\/v2\/categories?post=179"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cknotes.com\/wp-json\/wp\/v2\/tags?post=179"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}