From bd1333a8aa8b5f7b5acd42af6f2ea563e1468750 Mon Sep 17 00:00:00 2001 From: JohnVonNeumann Date: Fri, 13 Sep 2024 12:37:09 +1000 Subject: [PATCH] UPDATE desing.uml - add in UML for DateTime module --- design.uml | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/design.uml b/design.uml index aa7e08c..5aade06 100644 --- a/design.uml +++ b/design.uml @@ -15,4 +15,36 @@ +-----------------------+ | + __init__(start, end) | | + is_valid(reference_period_end) | -+-----------------------+ \ No newline at end of file ++-----------------------+ + + +@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 \ No newline at end of file