{"id":1440,"date":"2019-12-14T11:40:53","date_gmt":"2019-12-14T17:40:53","guid":{"rendered":"http:\/\/blog.ls-al.com\/?p=1440"},"modified":"2019-12-14T11:40:53","modified_gmt":"2019-12-14T17:40:53","slug":"formulas-for-bytes-and-duration","status":"publish","type":"post","link":"https:\/\/blog.ls-al.com\/formulas-for-bytes-and-duration\/","title":{"rendered":"Formulas for bytes and duration"},"content":{"rendered":"\n

Capturing a couple formulas for future reference. I was using restic backup stats and wanted to convert the time a job ran into hours and minutes. Also convert bytes process to TB.<\/p>\n\n\n\n

bytes to TB example: <\/strong>
total_bytes_processed: 5773378<\/strong> \/ 1000000000000 == 1.502888851889<\/p>\n\n\n\n

duration to HH:MM example using libre calc:<\/strong>
total_duration: 15870.197288027<\/strong> \/ 86400 and then Format Cell > Time > HH:MM:SS will show 04:24:30<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"

Capturing a couple formulas for future reference. I was using restic backup stats and wanted to convert the time a<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[113,99],"tags":[],"class_list":["post-1440","post","type-post","status-publish","format-standard","hentry","category-formula","category-restic"],"_links":{"self":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts\/1440","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/comments?post=1440"}],"version-history":[{"count":0,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts\/1440\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/media?parent=1440"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/categories?post=1440"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/tags?post=1440"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}