-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Conversion tests finished, 1.0. All 686 cross product conversions are…
… now tested.
- Loading branch information
Showing
5 changed files
with
124 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,9 @@ | |
|
||
import com.cedarsoftware.util.CompactLinkedMap; | ||
|
||
import static com.cedarsoftware.util.convert.MapConversions.HOURS; | ||
import static com.cedarsoftware.util.convert.MapConversions.MINUTES; | ||
|
||
/** | ||
* @author John DeRegnaucourt ([email protected]) | ||
* <br> | ||
|
@@ -35,8 +38,8 @@ static Map toMap(Object from, Converter converter) { | |
int hours = totalSeconds / 3600; | ||
int minutes = (totalSeconds % 3600) / 60; | ||
int seconds = totalSeconds % 60; | ||
target.put("hours", hours); | ||
target.put("minutes", minutes); | ||
target.put(HOURS, hours); | ||
target.put(MINUTES, minutes); | ||
if (seconds != 0) { | ||
target.put("seconds", seconds); | ||
} | ||
|
Oops, something went wrong.