<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>uncorrelated</author_name>
  <author_url>https://blog.hatena.ne.jp/uncorrelated/</author_url>
  <blog_title> 餡子付゛録゛</blog_title>
  <blog_url>https://uncorrelated.hatenablog.com/</blog_url>
  <categories>
    <anon>R言語</anon>
  </categories>
  <description>以前書いたエントリーを見直していて、操作を手早く紹介する例をつくっておきたくなりました。文字列型や数値型の日付データを、タイムゾーンUTCでのUNIX秒を保持するクラスPOSIXctか、日付構造体になっているリストPOSIXlt型に変換して操作して、文字列型に戻すだけの話なんですが、関数名をよく忘れるので。なお、最近はlubridateパッケージを使うのが一般的のようです。 # POSIXct → POSIXlt now_ct &lt;- Sys.time() # 現在時間を取得すると、POSIXct型で戻る now_lt &lt;- as.POSIXlt(now_ct) # POSIXct or POS…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Funcorrelated.hatenablog.com%2Fentry%2F2022%2F10%2F10%2F131831&quot; title=&quot;前世紀風のRの日付処理 -  餡子付゛録゛&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>2022-10-10 13:18:31</published>
  <title>前世紀風のRの日付処理</title>
  <type>rich</type>
  <url>https://uncorrelated.hatenablog.com/entry/2022/10/10/131831</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
