@@ 4610-4616 (lines=7) @@ | ||
4607 | * @return string |
|
4608 | */ |
|
4609 | function _format_date_time( $datetime, $parno=6 ) { |
|
4610 | if( !isset( $datetime['year'] ) && |
|
4611 | !isset( $datetime['month'] ) && |
|
4612 | !isset( $datetime['day'] ) && |
|
4613 | !isset( $datetime['hour'] ) && |
|
4614 | !isset( $datetime['min'] ) && |
|
4615 | !isset( $datetime['sec'] )) |
|
4616 | return ; |
|
4617 | $output = null; |
|
4618 | // if( !isset( $datetime['day'] )) { $o=''; foreach($datetime as $k=>$v) {if(is_array($v)) $v=implode('-',$v);$o.=" $k=>$v";} echo " day SAKNAS : $o <br />\n"; } |
|
4619 | foreach( $datetime as $dkey => $dvalue ) { |
|
@@ 4664-4669 (lines=6) @@ | ||
4661 | * @return string |
|
4662 | */ |
|
4663 | function _format_duration( $duration ) { |
|
4664 | if( !isset( $duration['week'] ) && |
|
4665 | !isset( $duration['day'] ) && |
|
4666 | !isset( $duration['hour'] ) && |
|
4667 | !isset( $duration['min'] ) && |
|
4668 | !isset( $duration['sec'] )) |
|
4669 | return; |
|
4670 | $output = 'P'; |
|
4671 | if( isset( $duration['week'] ) && ( 0 < $duration['week'] )) |
|
4672 | $output .= $duration['week'].'W'; |