Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Modeling DateTime primitive type

I wonder if someone know how can I model a DateTime primitive type in properties using UML?

like image 612
Chriss Avatar asked May 22 '26 04:05

Chriss


1 Answers

I guess it depends of the format of date ... Please see below an example where I model a date (as UML DataType) with two integers respectively the day and the year and a UML Enumaration named "Month" for the month. Of course, you can add some parts (UML Property) at the DateTime for the hour, minutes, etc. You can also choose to model the Month by an integer

Hoping it helps. example

like image 143
Red Beard Avatar answered May 25 '26 04:05

Red Beard