<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shinopikapi</author_name>
  <author_url>https://blog.hatena.ne.jp/shinopikapi/</author_url>
  <blog_title>memo</blog_title>
  <blog_url>https://shinopikapi.hateblo.jp/</blog_url>
  <categories>
    <anon>C#</anon>
    <anon>Visual Studio</anon>
    <anon>Windows Form</anon>
    <anon>Timer</anon>
  </categories>
  <description>現在時間を表示する方法 以下では、ラベル time1に現在時間をyyyy/MM/dd HH:mm:ss形式で表示します。 DateTime now = DateTime.Now; time1.Text = now.ToString(&quot;yyyy/MM/dd HH:mm:ss&quot;); 2018/10/31 10:11:12 年/月/日 時/分/秒 の形式で表示します。 よく使いますが、1秒ごとに現在時間を更新して表示する方法は以下になります。Timerを使う タイマーはツールボックスからデザイン画面上に引っ張ってきます。 timer1と表示されるので、これをダブルクリック。 Timer1_Tick(…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshinopikapi.hateblo.jp%2Fentry%2F2018%2F11%2F01%2F000421&quot; title=&quot;【C#】現在時間を1秒ごとに更新 - memo&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>https://cdn-ak.f.st-hatena.com/images/fotolife/s/shinopikapi/20181031/20181031234905.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-11-01 00:04:21</published>
  <title>【C#】現在時間を1秒ごとに更新</title>
  <type>rich</type>
  <url>https://shinopikapi.hateblo.jp/entry/2018/11/01/000421</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
