README.txt in ruby-units-0.3.6 vs README.txt in ruby-units-0.3.7
- old
+ new
@@ -1,8 +1,8 @@
=Ruby Units
-Version: 0.3.6
+Version: 0.3.7
Kevin C. Olbrich, Ph.D.
kevin.olbrich@gmail.com
http://www.sciwerks.com
@@ -112,9 +112,17 @@
'5 min'.from(Time.now)
'5 min'.from_now
'5 min'.before_now
'5 min'.before(Time.now)
'10 min'.ago
+
+Durations may be entered as 'HH:MM:SS, usec' and will be returned in 'hours'.
+
+'1:00'.unit #=> 1 h
+'0:30'.unit #=> 0.5 h
+'0:30:30'.unit #=> 0.5 h + 30 sec
+
+If only one ":" is present, it is interpreted as the separator between hours and minutes.
==Ranges
[U('0 h')..U('10 h')].each {|x| p x}
works so long as the starting point has an integer scalar