Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Структура описания формата времени.


Пространство имен:    Guardant

Синтаксис

    #pragma pack(push,1)
    typedef struct
    {
        WORD    wYear;          // Год (1601 - 30827)
        WORD    wMonth;         // Месяц(Январь = 1, Февраль = 2, ...)
        WORD    wDayOfWeek;     // День недели (Воскресенье = 0, Понедельник = 1, ...)
        WORD    wDay;           // День месяца (1-31)
        WORD    wHour;          // Час (0-23)
        WORD    wMinute;        // Минуты (0-59)
        WORD    wSecond;        // Секунды(0-59)
        WORD    wMilliseconds;  // Милисекунды(0-999)
    } TGrdSystemTime;
    #pragma pack(pop
        public struct GrdSystemTime
        {
            /// <summary>
            /// Год (1601 - 30827)
            /// </summary>
            public ushort wYear;
            /// <summary>
            /// Месяц(Январь = 1, Февраль = 2, ...)
            /// </summary>
            public ushort wMonth;
            /// <summary>
            /// День недели (Воскресенье = 0, Понедельник = 1, ...)
            /// </summary>
            public ushort wDayOfWeek;
            /// <summary>
            /// День месяца (1-31)
            /// </summary>
            public ushort wDay;
            /// <summary>
            /// Час (0-23)
            /// </summary>
            public ushort wHour;
            /// <summary>
            /// Минуты (0-59)
            /// </summary>
            public ushort wMinute;
            /// <summary>
            /// Секунды(0-59)
            /// </summary>
            public ushort wSecond;
            /// <summary>
            /// Милисекунды(0-999)
            /// </summary>
            public ushort wMilliseconds;
        }
    public class GrdSystemTime
    {
        /** The year (1601 - 2099) */
        public short mYear;
        /** The month (January = 1, February = 2, ...) */
        public short mMonth;
        /** The day of the week (Sunday = 0, Monday = 1, ...) */
        public short mDayOfWeek;
        /** The day of the month (1-31) */
        public short mDay;
        /** The hour (0-23) */
        public short mHour;
        /** The minute (0-59) */
        public short mMinute;
        /** The second (0-59) */
        public short mSecond;
        /** The millisecond (0-999) */
        public short mMilliseconds;
    }
    • No labels