Skip to content

Commit

Permalink
Add arrays for month and day names (full and abbreviated)
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kessler authored and beutlich committed Apr 11, 2020
1 parent 9e303b5 commit 7aa1e43
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Modelica/Utilities/Time.mo
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ days = leapDays(2000, 2020) // = 5 leap days in range [2000, 2019]
end leapDays;

final constant String weekDays[7] = {"Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"} "Array of week days";
final constant String shortWeekDays[7] = {"Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"} "Array of abbreviated week days";
final constant String months[12] = {"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"} "Array of month names";
final constant String shortMonths[12] = {"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"} "Array of abbreviated month names";

annotation (
Documentation(info="<html>
Expand Down

0 comments on commit 7aa1e43

Please sign in to comment.