Skip to content

Commit

Permalink
UPDATE desing.uml - add in UML for DateTime module
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnVonNeumann committed Sep 13, 2024
1 parent 765114a commit bd1333a
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion design.uml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,36 @@
+-----------------------+
| + __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

0 comments on commit bd1333a

Please sign in to comment.