projects
/
libacl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
UTC - operator calculates the difference in seconds
[libacl.git]
/
test
/
hour_assign.cpp
diff --git
a/test/hour_assign.cpp
b/test/hour_assign.cpp
index
dbaf728
..
2824262
100644
(file)
--- a/
test/hour_assign.cpp
+++ b/
test/hour_assign.cpp
@@
-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;
}