‹›単位と日付豊富な日付形式
標準的な日付形式のDateStringオブジェクトを取得する.
ISO-8601日付時刻形式を使って日付を得る.
DateString["ISODateTime"]
ISO-8601の序数日付形式として日付文字列を解釈する.
DateObject[{"2012-184", {"ISOOrdinalDate"}}]
ISO-8601週日付形式でDateObject式を得る.
DateObject[DateFormat -> "ISOWeekDate"]
カスタムの日付形式の日付オブジェクトを作る.
DateObject[{2014, 8, 4},
DateFormat -> {"DayName", " ", "MonthName", " ", "Day", ", ",
"YearRomanNumeral"}]
何十という日付形式要素が使用できる.
完全なWolfram言語入力を表示する
flist = {"Date", "DateShort", "Time", "DateTime", "DateTimeShort",
"ISODate", "ISOWeekDate", "ISOOrdinalDate", "ISODateTime", "ADBC",
"CEBCE", "Year", "YearShort", "ISOYear", "YearRomanNumeral",
"YearUnsigned", "QuarterName", "QuarterNameShort", "Quarter",
"MonthName", "MonthNameShort", "MonthNameInitial", "Month",
"MonthShort", "MonthRomanNumeral", "MonthRomanNumeralLowerCase",
"Week", "WeekShort", "DayName", "DayNameShort", "DayNameInitial",
"ISOWeekDay", "Day", "DayShort", "ISOYearDay", "ISOYearDayShort",
"Hour", "Hour12", "Hour24", "HourShort", "Hour12Short",
"Hour24Short", "AMPM", "AMPMLowerCase", "TimeZoneGMTRelative",
"ISOTimeZOne", "TimeZoneName", "TimeZoneNameShort", "Minute",
"MinuteShort", "Second", "SecondShort", "SecondExact",
"Millisecond", "MillisecondShort"}; Rasterize[
Grid[Map[Pane[
Style[# /. Last[flist] -> "Custom", ScriptLevel -> 0], {300}] &,
Join[{{"Date String Format", DateObject[{2016, 2, 9}]}},
Transpose[{flist,
Map[DateString[{2016, 2, 9, 14, 8, 4.2301}, #] &,
flist]}]], {2}], Dividers -> All, Spacings -> {2, 2},
Background -> {None, {{None, GrayLevel[.9]}}, {{1, 1} ->
Hue[.6, .4, 1], {1, 2} -> Hue[.6, .4, 1]}},
BaseStyle -> {FontFamily -> Times, FontSize -> 13}] //
TraditionalForm, ImageResolution -> 144, RasterSize -> 600,
ImageSize -> 300]