Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get current date?

Tags:

duration

ada

Is there a way to get the current date in Ada ?

I'm looking for an equivalent to the C# DateTime.Now() returning a Duration.

I have an event T and I want to mesure if T started more than 30 seconds ago.

like image 581
A.Pissicat Avatar asked Jun 12 '26 07:06

A.Pissicat


1 Answers

You might want to take a look at the Clock function in the package Ada.Real_Time (see also ARM D.8).

like image 87
DeeDee Avatar answered Jun 19 '26 05:06

DeeDee



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!