Changeset 534 for trunk/web2/addons/job_monarch/overview.php
- Timestamp:
- 07/10/08 14:40:20 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/web2/addons/job_monarch/overview.php
r532 r534 105 105 } 106 106 107 function timeToEpoch( $time )108 {109 $time_fields = explode( ':', $time );110 111 if( count( $time_fields ) == 3 )112 {113 $hours = $time_fields[0];114 $minutes = $time_fields[1];115 $seconds = $time_fields[2];116 117 }118 else if( count( $time_fields ) == 2 )119 {120 $hours = 0;121 $minutes = $time_fields[0];122 $seconds = $time_fields[1];123 124 }125 else if( count( $time_fields ) == 1 )126 {127 $hours = 0;128 $minutes = 0;129 $seconds = $time_fields[0];130 }131 132 $myepoch = intval( $seconds + (intval( $minutes * 60 )) + (intval( $hours * 3600 )) );133 134 return $myepoch;135 }136 137 107 function colorRed( $color ) 138 108 {
Note: See TracChangeset
for help on using the changeset viewer.