root/lang/csharp/soyText/soyText/TimeFormat.cs @ 32279

Revision 32279, 415 bytes (checked in by hoge1e3, 6 years ago)

一覧表示高速化

Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5
6namespace SoyText
7{
8    class TimeFormat
9    {
10        public static String now()
11        {
12            DateTime dtNow = DateTime.Now;
13            return format(dtNow);
14        }
15        public static String format(DateTime t)
16        {
17            return t.ToString("yyMMdd_HHmmss");
18
19        }
20    }
21}
Note: See TracBrowser for help on using the browser.