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


with Ada.Calendar;


--  This source is licensed under Creative Commons CC0 v1.0.
--
--  To read the full text, see license.txt in the main directory of this repository
--  or go to https://creativecommons.org/publicdomain/zero/1.0/legalcode.txt
--
--  For a human readable summary, go to https://creativecommons.org/publicdomain/zero/1.0/


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;