{"categories":["haskell"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcoffee-guhaw.hateblo.jp%2Fentry%2F2025%2F03%2F28%2F000000\" title=\"\u3010Haskell\u3011UTC\u6642\u523b\u3092\u8868\u793a\u3059\u308b - Bus error\u3068Segmentation fault\u306b\u56f0\u3063\u305f\u3089\u898b\u308b\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://coffee-guhaw.hateblo.jp/","blog_title":"Bus error\u3068Segmentation fault\u306b\u56f0\u3063\u305f\u3089\u898b\u308b\u30d6\u30ed\u30b0","provider_url":"https://hatena.blog","url":"https://coffee-guhaw.hateblo.jp/entry/2025/03/28/000000","title":"\u3010Haskell\u3011UTC\u6642\u523b\u3092\u8868\u793a\u3059\u308b","description":"(\u904e\u53bb\u8a18\u4e8b\u306e\u30b3\u30d4\u30da\u306a\u306e\u3067\u5185\u5bb9\u304c\u53e4\u3044\u304b\u3082\u77e5\u308c\u307e\u305b\u3093) \u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u3042\u308b\u30d1\u30fc\u30c8\u304b\u3089\u3042\u308b\u30d1\u30fc\u30c8\u3078\u306e\u5b9f\u884c\u6642\u9593\u3092\u8868\u793a\u3057\u305f\u3044\u3068\u304d\u306b\u305d\u306e\u76ee\u5b89\u3068\u3057\u3066\u6642\u9593\u3092\u8868\u793a\u3059\u308b\u3053\u3068\u304c\u3042\u308bHaskell\u3067\u306f Data.Time.Clock \u306bUTC\u3092\u8868\u793a\u3059\u308b\u95a2\u6570\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u308b import Data.Time.Clock startUTC <- getCurrentTime -- \u3053\u3053\u3067\u4f55\u304b\u3084\u308b endUTC <- getCurrentTime print $ diffUTCTime endUTC startUTC \u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u3067 --\u3053\u3053\u3067\u4f55\u304b\u3084\u308b \u306e\u9593\u306e\u6642\u9593\u304c\u308f\u304b\u308b\u306f\u305a(\u3042\u304f\u307e\u3067\u76ee\u5b89)\u25a0 \u53c2\u8003 hackage.has\u2026","width":"100%","type":"rich","author_name":"coffee_kabu","author_url":"https://blog.hatena.ne.jp/coffee_kabu/","height":"190","version":"1.0","published":"2025-03-28 00:00:00","provider_name":"Hatena Blog","image_url":null}