Beispiel #1
0
        private void run()
        {
            DAY = msecs / DTConst.DAY + 1; //+1 potomuchto s 1 yanvarya
            DAY = Math.Floor(DAY);

            WEEKDAY = DTConst.dayOfTheWeek((int)DAY);

            rem_msec = msecs % DTConst.DAY;
            rem_msec = Math.Floor(rem_msec);

            initDate();    // cherez obwee kolichestvo dney ishem Y:M:D
            initTime();    // cherez ostato msec ishem H:M:S:m
            correctDate(); // kostyl ili kastyl
        }
Beispiel #2
0
        // dateFormats

        public string getDateTime()
        {
            return(String.Format("{0}-{1}-{2} {3}:{4}:{5}:{6} DAY:{7} IS_LEAP_YEAR:{8}", YEAR, DTConst.monthOfTheYear(getMONTH()), DAY, HOUR, MIN, SEC, MSEC, WEEKDAY, isLeapYear()));
        }