当前位置: 首页>>代码示例>>PHP>>正文


PHP Time::getTimeZoneDateTime12方法代码示例

本文整理汇总了PHP中Time::getTimeZoneDateTime12方法的典型用法代码示例。如果您正苦于以下问题:PHP Time::getTimeZoneDateTime12方法的具体用法?PHP Time::getTimeZoneDateTime12怎么用?PHP Time::getTimeZoneDateTime12使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Time的用法示例。


在下文中一共展示了Time::getTimeZoneDateTime12方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

            <tbody>
                <?php 
$not_accepted = array('WIB', 'A', 'ACDT', 'AEST', 'WITA', 'AWST');
$dateTime = 'not allowed';
$style = '';
for ($i = 0; $i < count($locations); $i++) {
    $id = $locations[$i]['fs_invited_location_id_pk'];
    $name = $locations[$i]['fs_invited_location_name'];
    $time1 = $locations[$i]['fs_invited_location_send_tim1'];
    $time2 = $locations[$i]['fs_invited_location_send_tim2'];
    $time3 = $locations[$i]['fs_invited_location_send_tim3'];
    $tz = $locations[$i]['fs_invited_location_timezone'];
    $date = $locations[$i]['fs_invited_location_date'];
    if (!in_array($tz, $not_accepted)) {
        $time->setTimeZoneDateTime($tz);
        $dateTime = $time->getTimeZoneDateTime12();
        if (strpos($dateTime, 'PM') > 0) {
            $style = 'color:red';
        } else {
            $style = 'color:green';
        }
    }
    ?>
                        <tr>
                        <td><?php 
    echo $name . ' (' . $tz . " ) [<b style='{$style}'   >" . $dateTime . '</b>]';
    ?>
</td>
                        <td><?php 
    echo Time::convertTime24ToTime12($time1);
    ?>
开发者ID:jesus143,项目名称:fs-dev,代码行数:31,代码来源:invited_location_settings.php

示例2:

    $sc->get_site_last_update($url);



 if(mysql_query("DELETE FROM fs_test WHERE group_id NOT IN (SELECT max(id) FROM fs_test WHERE GROUP BY group_id); ")) {
     echo "deleted ";
 } else {
     echo "not deleted";
 }




 echo "<div style='display:none'>";
    Time::setTimeZoneDateTime('PHT');   
    echo 'Time' . Time::getTimeZoneDateTime12()  . '<br>';
    echo 'Time' . Time::getTimeZoneDateTime24() . '<br>';
    echo 'Time' . Time::getTimeZoneLocation() . '<br>';
    echo "date" . Time::getTimezoneDate() . '<br>';



        // break;
        // case 'MONTREAL':
        //     $url='http://www.timeanddate.com/worldclock/canada/montreal';
        //     $timezone='EST';
        // break; 
        //     $location =  'BANGKOK';
        //     $timezone='ICT';
        //     $url='http://www.timeanddate.com/worldclock/thailand/bangkok'; 
        // $b = $db->update(
开发者ID:jesus143,项目名称:fs-dev,代码行数:31,代码来源:testPage.php

示例3: printScrapperMenu


//.........这里部分代码省略.........
	      	</td>  
	     	<td style="width:10" >  
	        	<?php 
        $mc->image(array('type' => 'loader', 'id' => 'invited-people-sort-loader', 'style' => 'visibility:hidden;height:10px;'));
        ?>
    
	      	</td>




	      	<td> 
		        <select onchange="invited_person ( 'invited-person' , 'change-content' , '' , '#invited-people-sort' )" id='invited-people-sort-location' >  
		        	<option value="LOCATION" >LOCATION</option>  
		   			<?php 
        $response = select_v4(array('type' => 'select', 'tablename' => 'fs_invited', 'rows' => 'count(*) as total , location', 'where' => "invited_status = {$invited_status} GROUP BY location"));
        for ($i = 0; $i < count($response); $i++) {
            $locationDb = $response[$i]['location'];
            $totalDb = $response[$i]['total'];
            if ($location == $locationDb) {
                echo "<option value= '{$locationDb}' selected=\"selected\">{$locationDb}({$totalDb})</option>";
            } else {
                echo "<option value= '{$locationDb}' >{$locationDb}({$totalDb})</option>";
            }
        }
        ?>
 
		        </select>
	      	</td>
        <!--
	      	<td>  
	        	<div>
	        	<?php 
        echo " " . Time::getTimeZoneDateTime12() . '  ' . $this->getTimeZone();
        ?>
	        	</div> 
	   		</td>
        <td>
            <select onchange="setTimeInviteTime('<?php 
        echo date('Y-m-d');
        ?>
' , this, 'dateTime', '', '<?php 
        echo $location;
        ?>
', '<?php 
        echo $this->getTimeZone();
        ?>
' )" >
                <option value="Time"  >TIME</option>
                <?php 
        foreach (Time::getTimeDbFormatArray() as $key => $value) {
            echo '<option value=' . $key . '>' . $value . '</option>';
        }
        ?>
            </select>
            <?php 
        echo "<br>" . Time::convertTimeToReadableDate($DateTimeSend);
        ?>
        </td>
        <td>
            <select onchange="setTimeInviteTime('<?php 
        echo date('Y-m-d');
        ?>
' , this, 'time', 'DateTimeSend1','<?php 
        echo $location;
        ?>
开发者ID:jesus143,项目名称:fs-dev,代码行数:67,代码来源:Lookbook.php


注:本文中的Time::getTimeZoneDateTime12方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。