-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdesign.uml
50 lines (44 loc) · 1.14 KB
/
design.uml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
+-----------------------+
| ReferencePeriod |
+-----------------------+
| - start: DateTime |
| - end: DateTime |
+-----------------------+
| + __init__(start, end) |
+-----------------------+
+-----------------------+
| ValidityPeriod |
+-----------------------+
| - start: DateTime |
| - end: DateTime |
+-----------------------+
| + __init__(start, end) |
| + is_valid(reference_period_end) |
+-----------------------+
@startuml
skinparam class {
FontName Arial
FontSize 14
ArrowColor Black
}
class DateTime {
+ iso_datetime : DateTime
+ iso_string : str
constructor (value : str)
method now() : DateTime
method create_datetime_years_from_now(years : int) : DateTime
static method same_day(first : DateTime, second : DateTime) : bool
method ==(other : object) : bool
method <(other : DateTime) : bool
method <=(other : DateTime) : bool
method >(other : DateTime) : bool
method >=(other : DateTime) : bool
method __repr__() : str
method __str__() : str
property date
property year : int
property month : int
property day : int
property time : str
}
@enduml