Exemple #1
0
            public string getDateStringx(long tsval, int offset)
            {
                //1971-04-25 23:00:00 +0000
                GPTimestamp ts = new GPTimestamp(tsval);

                ts.subtractSeconds(-offset);
                return(string.Format("{0:0000}-{1:00}-{2:00}-{3:00}-{4:00}-{5:00}", ts.year, ts.month, ts.day, ts.hour, ts.minute, ts.second));
            }
Exemple #2
0
            public DateTime getDateTime(int off)
            {
                GPTimestamp ts = new GPTimestamp(Timestamp);

                ts.subtractSeconds(-off);
                return(new DateTime(ts.year, ts.month, ts.day, ts.hour,
                                    ts.minute, ts.second));
            }