/// <summary> /// PLCの時刻データを取得 /// </summary> /// <returns>時刻データ文字列</returns> private string GetPLCClockData() { short year; short month; short day; short dayOfWeek; short hour; short minute; short second; ActUtlType.GetClockData(out year, out month, out day, out dayOfWeek, out hour, out minute, out second); return(year.ToString("00") + "/" + month.ToString("00") + "/" + day.ToString("00") + " " + hour.ToString("00") + ":" + minute.ToString("00") + ":" + second.ToString("00")); }