Michi : Michi Namespace

Utils Class

汎用ルーチン、環境依存部分などをカプセル化したクラス

Syntax

public static class Utils

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Michi
Assembly: Michi (in Michi.dll)
Assembly Versions: 0.0.0.0

Members

See Also: Inherited members from object.

Public Fields

static
FILE_SEPARATER string . システムのファイル セパレータ
static
TAB_STRING string . スクリプト出力のタブ文字列
static
YMD_SEPARATER string . Separater between year, month and day for nonlocal DateTime type "u"

Public Methods

static
GetDateTimeWithYMD (DateTime, string) : DateTime
DateTimeに年月日を設定する
static
GetFilename (string) : string
フルパスからファイル名を抽出する
static
GetFilePath (string) : string
フルパスからパス名を抽出する
static
GetYMDFromFilename (string, YearMode, string) : string
ファイルネームから年月日を取得
static
RoundKilo (double) : double
kilo単位で有効数字で丸める
static
RoundMega (double) : double
mega単位で有効数字で丸める

Member Details

FILE_SEPARATER Field

システムのファイル セパレータ

Syntax

public static string FILE_SEPARATER

Remarks

Platform dependent

Requirements

Namespace: Michi
Assembly: Michi (in Michi.dll)
Assembly Versions: 0.0.0.0

GetDateTimeWithYMD Method

DateTimeに年月日を設定する

Syntax

public static DateTime GetDateTimeWithYMD (DateTime dateTime, string yearMonthDay)

Parameters

dateTime
Date time.
yearMonthDay
YYYY-MM-DD

Returns

更新されたDateTime

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Michi
Assembly: Michi (in Michi.dll)
Assembly Versions: 0.0.0.0

GetFilename Method

フルパスからファイル名を抽出する

Syntax

public static string GetFilename (string fullPath)

Parameters

fullPath
Documentation for this section has not yet been entered.

Returns

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Michi
Assembly: Michi (in Michi.dll)
Assembly Versions: 0.0.0.0

GetFilePath Method

フルパスからパス名を抽出する

Syntax

public static string GetFilePath (string fullPath)

Parameters

fullPath
Documentation for this section has not yet been entered.

Returns

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Michi
Assembly: Michi (in Michi.dll)
Assembly Versions: 0.0.0.0

GetYMDFromFilename Method

ファイルネームから年月日を取得

Syntax

public static string GetYMDFromFilename (string filename, YearMode yearMode, string defaultYear)

Parameters

filename
Documentation for this section has not yet been entered.
yearMode
Documentation for this section has not yet been entered.
defaultYear
Documentation for this section has not yet been entered.

Returns

YYYY-MM-DD 形式の文字列 (UTC)

Remarks

次の機種のログデータに対応 SONY PCG-CS3 WGYYYYMMDDhhmmss.log (UTC) TRANSYSTEM TripMate850 MMDDhhmm.nma (localtime)

Requirements

Namespace: Michi
Assembly: Michi (in Michi.dll)
Assembly Versions: 0.0.0.0

RoundKilo Method

kilo単位で有効数字で丸める

Syntax

public static double RoundKilo (double value)

Parameters

value
Documentation for this section has not yet been entered.

Returns

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Michi
Assembly: Michi (in Michi.dll)
Assembly Versions: 0.0.0.0

RoundMega Method

mega単位で有効数字で丸める

Syntax

public static double RoundMega (double value)

Parameters

value
Documentation for this section has not yet been entered.

Returns

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Michi
Assembly: Michi (in Michi.dll)
Assembly Versions: 0.0.0.0

TAB_STRING Field

スクリプト出力のタブ文字列

Syntax

public static string TAB_STRING

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Michi
Assembly: Michi (in Michi.dll)
Assembly Versions: 0.0.0.0

YMD_SEPARATER Field

Separater between year, month and day for nonlocal DateTime type "u"

Syntax

public static string YMD_SEPARATER

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Michi
Assembly: Michi (in Michi.dll)
Assembly Versions: 0.0.0.0