Skip to content

Commit

Permalink
Corrected systemTime
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinlano authored Feb 10, 2025
1 parent 52d9882 commit 0653d25
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
Binary file modified libraries/OclDate.class
Binary file not shown.
2 changes: 2 additions & 0 deletions libraries/OclDate.java
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,8 @@ public static void main(String[] args)
OclDate d2 = OclDate.newOclDate_YMD(2024,11,1);
int dd = OclDate.daysBetweenDates(d1,d2);
System.out.println(d2.isLeapYear());

System.out.println(OclDate.getSystemTime());
}

}
Expand Down
3 changes: 2 additions & 1 deletion libraries/ocldate.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def dateBefore(self,other) :
return self.time < other.time

def getSystemTime() :
return int(time.time())*1000
return int(time.time()*1000)

def setSystemTime(t) :
pass
Expand Down Expand Up @@ -304,6 +304,7 @@ def daysBetweenDates(d1,d2) :
# d2 = OclDate.newOclDate_YMD(2023, 11, 1)
# print(OclDate.daysBetweenDates(d1,d2))

# print(OclDate.getSystemTime())



Expand Down

0 comments on commit 0653d25

Please sign in to comment.