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


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;