 |
Changeset 3837
- Timestamp:
- 08/03/08 13:31:02
(4 months ago)
- Author:
- kris
- Message:
fixes #1186 :: tango.text.convert.TimeStamp? does not parse times coreectly
Thanks to Madrok
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r3639 |
r3837 |
|
| 403 | 403 | private bool time(T) (inout TimeOfDay time, inout T* p) |
|---|
| 404 | 404 | { |
|---|
| 405 | | return ((time.hours = parseInt(p)) > 0 && |
|---|
| 406 | | *p++ == ':' && |
|---|
| 407 | | (time.minutes = parseInt(p)) > 0 && |
|---|
| 408 | | *p++ == ':' && |
|---|
| 409 | | (time.seconds = parseInt(p)) > 0); |
|---|
| | 405 | return ((time.hours = parseInt(p)) >= 0 && |
|---|
| | 406 | *p++ == ':' && |
|---|
| | 407 | (time.minutes = parseInt(p)) >= 0 && |
|---|
| | 408 | *p++ == ':' && |
|---|
| | 409 | (time.seconds = parseInt(p)) >= 0); |
|---|
| 410 | 410 | } |
|---|
| 411 | 411 | |
|---|
Download in other formats:
|
 |
 |
|
 |
Copyright © 2006-2008 Tango. All Rights Reserved. | Page Width:
Static or
Dynamic