تقييم الموضوع :
  • 0 أصوات - بمعدل 0
  • 1
  • 2
  • 3
  • 4
  • 5
ممكن المساعدة فى كود حساب الوقت
#2
PHP كود :
Public Class DateRange
   
Public Property StartTime As DateTime
   
Public Property EndTime As DateTime
   
Public ReadOnly Property NumberOfHours As Decimal
       Get
           Dim result 
As Double
           result 
+= (EndTime StartTime).Hours
           result 
+= (EndTime StartTime).Minutes 60
           result 
+= (EndTime StartTime).Seconds 3600
           
Return result
       End Get
   End Property
End 
Class 

يجب فصل توقيت الدخول عن توقيت الخروج كما بالكلاس عالبه
Don't Be The Perfect one
be the right one
الرد }}}
تم الشكر بواسطة: new_programer


الردود في هذا الموضوع
RE: ممكن المساعدة فى كود حساب الوقت - بواسطة boudyonline - 07-10-20, 06:28 PM


التنقل السريع :


يقوم بقرائة الموضوع: بالاضافة الى ( 1 ) ضيف كريم