Example #1
0
 public ThoiGian(ThoiGian tg)
 {
     Ngay    = tg.Ngay;
     Thang   = tg.Thang;
     Nam     = tg.Nam;
     Gio     = tg.Gio;
     Phut    = tg.Phut;
     Giay    = tg.Giay;
     TichTac = tg.TichTac;
 }
Example #2
0
        static void Main(string[] args)
        {
            System.DateTime currTim = System.DateTime.Now;
            ThoiGian        t1      = new ThoiGian(currTim);

            t1.ThoiGianHienTai();

            ThoiGian t2 = new ThoiGian(t1);

            t2.ThoiGianHienTai();
            Console.ReadLine();
        }