コード例 #1
0
        /// <summary>
        /// Get the string for log output.
        /// </summary>
        /// <param name="obj">Structure that you want to convert to a string</param>
        /// <returns>String for log output</returns>
        public static StringBuilder ConvertToLogString(LJV7IF_TIME time)
        {
            StringBuilder sb = new StringBuilder();

            sb.Append(
                string.Format("yy/mm/dd hh:mm:ss \n {0,0:d2}/{1,0:d2}/{2,0:d2} {3,0:d2}:{4,0:d2}:{5,0:d2}",
                              time.byYear, time.byMonth, time.byDay,
                              time.byHour, time.byMinute, time.bySecond));

            return(sb);
        }
コード例 #2
0
ファイル: NativeMethods.cs プロジェクト: amittyyy/COM-Module
 internal static extern int LJV7IF_GetTime(int lDeviceId, ref LJV7IF_TIME time);