<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Windymelt</author_name>
  <author_url>https://blog.hatena.ne.jp/Windymelt/</author_url>
  <blog_title>Lambdaカクテル</blog_title>
  <blog_url>https://blog.3qe.us/</blog_url>
  <categories>
    <anon>技術</anon>
    <anon>scala</anon>
  </categories>
  <description>Scalaでは時刻操作のためにJavaライブラリであるjoda-time(と、そのScala用便利ラッパーであるnscala-time)を使うことが多い。JVM言語の良い所だ。今回はタイムゾーンTZ操作にまつわるメモ。 withZoneでタイムゾーン表記を変更する DateTimeに対して定義されているwithZoneを使うと、ある時点での時刻の瞬間を保ったままTZを変更してくれる(いずれもUTCで見れば同じ時刻を指している)。 言い換えると、時刻を保持しつつTZの表記だけ変更してくれるメソッドである。 // build.scala libraryDependencies += &quot;com.gi…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.3qe.us%2Fentry%2F2023%2F03%2F13%2F164653&quot; title=&quot;DateTimeのwithZoneについてのメモ / 構造の忘却という普遍的な話題 - Lambdaカクテル&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>2023-03-13 16:46:53</published>
  <title>DateTimeのwithZoneについてのメモ / 構造の忘却という普遍的な話題</title>
  <type>rich</type>
  <url>https://blog.3qe.us/entry/2023/03/13/164653</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
