<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shuzo_kino</author_name>
  <author_url>https://blog.hatena.ne.jp/shuzo_kino/</author_url>
  <blog_title>Bye Bye Moore</blog_title>
  <blog_url>https://shuzo-kino.hateblo.jp/</blog_url>
  <categories>
    <anon>golang</anon>
  </categories>
  <description>GO言語のtimeパッケージで分や時を設定する方法 Duration関数で設定すると、ナノ秒ベースの数値がでます。 これに分や時の関数を掛けてあげる事で対応 実際のところ package main import ( &quot;fmt&quot; &quot;time&quot; ) func main() { value := 10 fmt.Printf(&quot;%v\n&quot;, time.Duration(value)) // prints 10ns fmt.Printf(&quot;%v\n&quot;, time.Duration(value)*time.Second) // prints 10s fmt.Printf(&quot;%v\n&quot;, time.Dura…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshuzo-kino.hateblo.jp%2Fentry%2F2017%2F05%2F16%2F233841&quot; title=&quot;GO言語のtimeパッケージで分や時を設定する方法 - Bye Bye Moore&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-05-16 23:38:41</published>
  <title>GO言語のtimeパッケージで分や時を設定する方法</title>
  <type>rich</type>
  <url>https://shuzo-kino.hateblo.jp/entry/2017/05/16/233841</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
