UTC - operator calculates the difference in seconds
[libacl.git] / test / hour_assign.cpp
index dbaf728..2824262 100644 (file)
@@ -60,6 +60,12 @@ int main()
    assert(h5.Minute() == 23);
    assert(h5.Second() == 20);
 
+   long l5;
+
+   l5 = (long)h5;
+   std::cout << h5 << " = " << l5 << " seconds.\n";
+   assert(l5 == 5000);
+
    return 0;
 }