示例#1
0
        public static bool SetOffset(String setOffset)
        {
            Parsetime pt = new Parsetime();

            m_Offset = pt.ParseTS(setOffset);
            return(true);
        }
示例#2
0
        public static bool SetOffset(TimeSpan currentOffset, String setOffset)
        {
            Parsetime pt = new Parsetime();

            m_Offset = currentOffset + pt.ParseTS(setOffset);
            return(true);
        }
        // Initialize with a start time, length (the variable is incorrectly named), and a human-friendly name
        public TimerDatastore(string initStartOffset, string initEndTime, string initName)
        {
            // Parse our strings
            StartOffset = ParseTime.ParseTS(initStartOffset);
            Length      = ParseTime.ParseTS(initEndTime);

            m_Name = initName;
        }