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


PHP TTDate::getTimeStamp方法代码示例

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


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

示例1: getPayrollDeductionObject

 function getPayrollDeductionObject()
 {
     if (!isset($this->payroll_deduction_obj)) {
         require_once Environment::getBasePath() . DIRECTORY_SEPARATOR . 'classes' . DIRECTORY_SEPARATOR . 'payroll_deduction' . DIRECTORY_SEPARATOR . 'PayrollDeduction.class.php';
         $this->payroll_deduction_obj = new PayrollDeduction('CA', NULL);
         $this->payroll_deduction_obj->setDate(TTDate::getTimeStamp($this->year, 12, 31));
     }
     return $this->payroll_deduction_obj;
 }
开发者ID:alachaum,项目名称:timetrex,代码行数:9,代码来源:t4.class.php

示例2: unset

         }
     }
     unset($tmp_schedule_shifts, $tmp2_schedule_shifts);
     $tmp_schedule_shifts = $schedule_shifts;
 }
 //print_r($schedule_shifts);
 if (isset($tmp_schedule_shifts)) {
     //Format array so Smarty has an easier time.
     foreach ($tmp_schedule_shifts as $day_epoch => $day_tmp_schedule_shift) {
         foreach ($day_tmp_schedule_shift as $branch => $department_schedule_shifts) {
             foreach ($department_schedule_shifts as $department => $user_schedule_shifts) {
                 foreach ($user_schedule_shifts as $user_id => $user_schedule_shifts) {
                     $x = 0;
                     foreach ($user_schedule_shifts as $user_schedule_shift) {
                         if ($x == 0) {
                             $tmp_min_start_date = TTDate::getTimeStamp(date('Y', $user_schedule_shift['start_time']), date('m', $user_schedule_shift['start_time']), date('d', $user_schedule_shift['start_time']), $min_hour);
                         } else {
                             $tmp_min_start_date = $prev_user_schedule_shift['end_time'];
                         }
                         $off_duty = ($user_schedule_shift['start_time'] - $tmp_min_start_date) / 900;
                         //15 Min increments
                         $on_duty = ($user_schedule_shift['end_time'] - $user_schedule_shift['start_time']) / 900;
                         $user_schedule_shift['off_duty'] = $off_duty;
                         $user_schedule_shift['on_duty'] = $on_duty;
                         $schedule_shifts[$day_epoch][$branch][$department][$user_id][] = $user_schedule_shift;
                         $prev_user_schedule_shift = $user_schedule_shift;
                         $x++;
                     }
                 }
             }
         }
开发者ID:J-P-Hanafin,项目名称:TimeTrex-1,代码行数:31,代码来源:ViewScheduleLinear.php


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