summaryrefslogtreecommitdiff
path: root/src/simple_time.ads
blob: 01aaa237542b9529d732a2fd9e98cba4cedc9e72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21


with Ada.Calendar;


package Simple_Time is


    subtype Time is Ada.Calendar.Time;


    function Now return Time renames Ada.Calendar.Clock;
    function To_String (Moment : in Time) return String;


    function "-" (Left, Right : in Time) return Duration renames Ada.Calendar."-";


end Simple_Time;