本文整理汇总了PHP中TTDate::parseTimeUnit方法的典型用法代码示例。如果您正苦于以下问题:PHP TTDate::parseTimeUnit方法的具体用法?PHP TTDate::parseTimeUnit怎么用?PHP TTDate::parseTimeUnit使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TTDate
的用法示例。
在下文中一共展示了TTDate::parseTimeUnit方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: extract
* Get FORM variables
*/
extract(FormVariables::GetVariables(array('action', 'id', 'user_id', 'pay_period_schedule_data')));
//var_dump($pay_period_schedule_data);
if (isset($pay_period_schedule_data)) {
if (isset($pay_period_schedule_data['anchor_date'])) {
$pay_period_schedule_data['anchor_date'] = TTDate::parseDateTime($pay_period_schedule_data['anchor_date']);
}
if (isset($pay_period_schedule_data['day_start_time'])) {
$pay_period_schedule_data['day_start_time'] = TTDate::parseTimeUnit($pay_period_schedule_data['day_start_time']);
}
if (isset($pay_period_schedule_data['new_day_trigger_time'])) {
$pay_period_schedule_data['new_day_trigger_time'] = TTDate::parseTimeUnit($pay_period_schedule_data['new_day_trigger_time']);
}
if (isset($pay_period_schedule_data['maximum_shift_time'])) {
$pay_period_schedule_data['maximum_shift_time'] = TTDate::parseTimeUnit($pay_period_schedule_data['maximum_shift_time']);
}
}
//var_dump($pay_period_schedule_data);
$ppsf = TTnew('PayPeriodScheduleFactory');
$action = Misc::findSubmitButton();
$action = strtolower($action);
switch ($action) {
case 'submit':
//Debug::setVerbosity(11);
Debug::Text('Submit!', __FILE__, __LINE__, __METHOD__, 10);
$ppsf->StartTransaction();
$ppsf->setId($pay_period_schedule_data['id']);
$ppsf->setCompany($current_company->getId());
$ppsf->setName($pay_period_schedule_data['name']);
$ppsf->setDescription($pay_period_schedule_data['description']);
示例2: extract
//Redirect
}
$smarty->assign('title', TTi18n::gettext($title = 'Edit Exception Policy'));
// See index.php
/*
* Get FORM variables
*/
extract(FormVariables::GetVariables(array('action', 'id', 'data')));
if (isset($data['exceptions'])) {
foreach ($data['exceptions'] as $code => $exception) {
if (isset($exception['grace']) and $exception['grace'] != '') {
Debug::Text('Grace: ' . $exception['grace'], __FILE__, __LINE__, __METHOD__, 10);
$data['exceptions'][$code]['grace'] = TTDate::parseTimeUnit($exception['grace']);
}
if (isset($exception['watch_window']) and $exception['watch_window'] != '') {
$data['exceptions'][$code]['watch_window'] = TTDate::parseTimeUnit($exception['watch_window']);
}
}
}
$epf = new ExceptionPolicyFactory();
$epcf = new ExceptionPolicyControlFactory();
$action = Misc::findSubmitButton();
$action = strtolower($action);
switch ($action) {
case 'submit':
//Debug::setVerbosity(11);
Debug::Text('Submit!', __FILE__, __LINE__, __METHOD__, 10);
$epcf->setId($data['id']);
$epcf->setCompany($current_company->getId());
$epcf->setName($data['name']);
if ($epcf->isValid()) {
示例3: parse_amount
function parse_amount($input, $default_value = NULL, $parse_hint = NULL, $raw_row = NULL)
{
$val = new Validator();
TTDate::setTimeUnitFormat($parse_hint);
$retval = TTDate::parseTimeUnit($val->stripNonFloat($input));
return $retval;
}
示例4: extract
//Debug::setVerbosity(11);
if (!$permission->Check('holiday_policy', 'enabled') or !($permission->Check('holiday_policy', 'edit') or $permission->Check('holiday_policy', 'edit_own'))) {
$permission->Redirect(FALSE);
//Redirect
}
$smarty->assign('title', TTi18n::gettext($title = 'Edit Holiday Policy'));
// See index.php
/*
* Get FORM variables
*/
extract(FormVariables::GetVariables(array('action', 'id', 'data')));
if (isset($data['minimum_time'])) {
$data['minimum_time'] = TTDate::parseTimeUnit($data['minimum_time']);
}
if (isset($data['maximum_time'])) {
$data['maximum_time'] = TTDate::parseTimeUnit($data['maximum_time']);
}
$hpf = TTnew('HolidayPolicyFactory');
$action = Misc::findSubmitButton();
$action = strtolower($action);
switch ($action) {
case 'submit':
//Debug::setVerbosity(11);
Debug::Text('Submit!', __FILE__, __LINE__, __METHOD__, 10);
$hpf->StartTransaction();
$hpf->setId($data['id']);
$hpf->setCompany($current_company->getId());
$hpf->setName($data['name']);
$hpf->setType($data['type_id']);
$hpf->setDefaultScheduleStatus($data['default_schedule_status_id']);
$hpf->setMinimumEmployedDays($data['minimum_employed_days']);
示例5: extract
* $Date: 2009-10-07 13:27:06 -0700 (Wed, 07 Oct 2009) $
*/
require_once '../../includes/global.inc.php';
require_once Environment::getBasePath() . 'includes/Interface.inc.php';
if (!$permission->Check('over_time_policy', 'enabled') or !($permission->Check('over_time_policy', 'edit') or $permission->Check('over_time_policy', 'edit_own'))) {
$permission->Redirect(FALSE);
//Redirect
}
$smarty->assign('title', TTi18n::gettext($title = 'Edit Overtime Policy'));
// See index.php
/*
* Get FORM variables
*/
extract(FormVariables::GetVariables(array('action', 'id', 'data')));
if (isset($data['trigger_time'])) {
$data['trigger_time'] = TTDate::parseTimeUnit($data['trigger_time']);
}
$otpf = new OverTimePolicyFactory();
$action = Misc::findSubmitButton();
$action = strtolower($action);
switch ($action) {
case 'submit':
Debug::Text('Submit!', __FILE__, __LINE__, __METHOD__, 10);
$otpf->setId($data['id']);
$otpf->setCompany($current_company->getId());
$otpf->setName($data['name']);
$otpf->setType($data['type_id']);
//$otpf->setLevel( $data['level'] );
$otpf->setTriggerTime($data['trigger_time']);
$otpf->setRate($data['rate']);
$otpf->setWageGroup($data['wage_group_id']);
示例6: switch
switch ($action) {
case 'submit':
Debug::Text('Submit!', __FILE__, __LINE__, __METHOD__, 10);
$ulf->getByIdAndCompanyId($user_id, $current_company->getId());
if ($ulf->getRecordCount() > 0) {
$user_obj = $ulf->getCurrent();
$is_owner = $permission->isOwner($user_obj->getCreatedBy(), $user_obj->getID());
$is_child = $permission->isChild($user_obj->getId(), $permission_children_ids);
if ($permission->Check('wage', 'edit') or $permission->Check('wage', 'edit_own') and $is_owner === TRUE or $permission->Check('wage', 'edit_child') and $is_child === TRUE) {
$uwf->setId($wage_data['id']);
$uwf->setUser($user_id);
$uwf->setWageGroup($wage_data['wage_group_id']);
$uwf->setType($wage_data['type']);
$uwf->setWage($wage_data['wage']);
$uwf->setHourlyRate($wage_data['hourly_rate']);
$uwf->setWeeklyTime(TTDate::parseTimeUnit($wage_data['weekly_time']));
$uwf->setEffectiveDate($wage_data['effective_date']);
$uwf->setLaborBurdenPercent($wage_data['labor_burden_percent']);
$uwf->setNote($wage_data['note']);
if ($uwf->isValid()) {
$uwf->Save();
Redirect::Page(URLBuilder::getURL(array('user_id' => $user_id, 'saved_search_id' => $saved_search_id), 'UserWageList.php'));
break;
}
} else {
$permission->Redirect(FALSE);
//Redirect
exit;
}
}
default:
示例7: extract
* Get FORM variables
*/
extract(FormVariables::GetVariables(array('action', 'id', 'ids', 'data', 'type_id')));
if (isset($data['recalculate_start_date'])) {
$data['recalculate_start_date'] = TTDate::parseDateTime($data['recalculate_start_date']);
}
if (isset($data['recalculate_end_date'])) {
$data['recalculate_end_date'] = TTDate::parseDateTime($data['recalculate_end_date']);
}
if (isset($data['milestone_rows'])) {
foreach ($data['milestone_rows'] as $milestone_row_id => $milestone_row) {
if ($data['type_id'] == 20 and isset($milestone_row['accrual_rate']) and $milestone_row['accrual_rate'] != '') {
$data['milestone_rows'][$milestone_row_id]['accrual_rate'] = TTDate::parseTimeUnit($milestone_row['accrual_rate']);
}
if (isset($milestone_row['maximum_time']) and $milestone_row['maximum_time'] != '') {
$data['milestone_rows'][$milestone_row_id]['maximum_time'] = TTDate::parseTimeUnit($milestone_row['maximum_time']);
}
/*
if ( isset($milestone_row['minimum_time']) AND $milestone_row['minimum_time'] != '' ) {
$data['milestone_rows'][$milestone_row_id]['minimum_time'] = TTDate::parseTimeUnit($milestone_row['minimum_time'] );
}
*/
}
}
$apf = new AccrualPolicyFactory();
$apmf = new AccrualPolicyMilestoneFactory();
$action = Misc::findSubmitButton();
$action = strtolower($action);
switch ($action) {
case 'delete':
//Debug::setVerbosity(11);
示例8: getHourlyRate
/**
* Calculate salaried employees hourly rate based on wage and weekly hours.
* @param float $wage Wage
* @param float $weekly_hours Weekly Hours
* @param int $wage_type_id Wage Type ID
* @return float
*/
function getHourlyRate($wage, $weekly_hours, $wage_type_id = 10)
{
if ($wage == '') {
return '0.00';
}
if ($weekly_hours == '') {
return '0.00';
}
if ($wage_type_id == '') {
return '0.00';
}
$uwf = TTnew('UserWageFactory');
$uwf->setType($wage_type_id);
$uwf->setWage($wage);
$uwf->setWeeklyTime(TTDate::parseTimeUnit($weekly_hours));
$hourly_rate = $uwf->calcHourlyRate();
return $this->returnHandler($hourly_rate);
}
示例9: extract
}
$smarty->assign('title', TTi18n::gettext($title = 'Edit Rounding Policy'));
// See index.php
/*
* Get FORM variables
*/
extract(FormVariables::GetVariables(array('action', 'id', 'round_policy_data')));
if (isset($round_policy_data)) {
$round_policy_data['round_grace_start'] = TTDate::parseTimeUnit($round_policy_data['round_grace_start']);
$round_policy_data['round_grace_lunch_start'] = TTDate::parseTimeUnit($round_policy_data['round_grace_lunch_start']);
$round_policy_data['round_grace_lunch_end'] = TTDate::parseTimeUnit($round_policy_data['round_grace_lunch_end']);
$round_policy_data['round_grace_end'] = TTDate::parseTimeUnit($round_policy_data['round_grace_end']);
$round_policy_data['round_start'] = TTDate::parseTimeUnit($round_policy_data['round_start']);
$round_policy_data['round_lunch_start'] = TTDate::parseTimeUnit($round_policy_data['round_lunch_start']);
$round_policy_data['round_lunch_end'] = TTDate::parseTimeUnit($round_policy_data['round_lunch_end']);
$round_policy_data['round_end'] = TTDate::parseTimeUnit($round_policy_data['round_end']);
}
$rpf = TTnew('RoundPolicyFactory');
$action = strtolower($action);
switch ($action) {
case 'submit':
Debug::Text('Submit!', __FILE__, __LINE__, __METHOD__, 10);
$rpf->setId($round_policy_data['id']);
$rpf->setCompany($current_company->getId());
$rpf->setName($round_policy_data['name']);
if ($round_policy_data['description'] != '') {
$rpf->setDescription($round_policy_data['description']);
}
if (isset($round_policy_data['default'])) {
$rpf->setDefault(TRUE);
} else {
示例10: extract
require_once '../../includes/global.inc.php';
require_once Environment::getBasePath() . 'includes/Interface.inc.php';
if (!$permission->Check('accrual', 'enabled') or !($permission->Check('accrual', 'edit') or $permission->Check('accrual', 'edit_own') or $permission->Check('accrual', 'edit_child'))) {
$permission->Redirect(FALSE);
//Redirect
}
//Debug::setVerbosity( 11 );
$smarty->assign('title', TTi18n::gettext($title = 'Edit Accrual'));
// See index.php
/*
* Get FORM variables
*/
extract(FormVariables::GetVariables(array('action', 'id', 'user_id', 'filter_user_id', 'accrual_policy_id', 'data')));
if (isset($data)) {
$data['time_stamp'] = TTDate::parseDateTime($data['time_stamp']);
$data['amount'] = TTDate::parseTimeUnit($data['amount']);
}
$af = TTnew('AccrualFactory');
$action = Misc::findSubmitButton();
$action = strtolower($action);
switch ($action) {
case 'submit':
Debug::Text('Submit!', __FILE__, __LINE__, __METHOD__, 10);
$af->setId($data['id']);
$af->setUser($data['user_id']);
$af->setType($data['type_id']);
$af->setAccrualPolicyID($data['accrual_policy_id']);
$af->setAmount($data['amount']);
$af->setTimeStamp($data['time_stamp']);
$af->setEnableCalcBalance(TRUE);
if ($af->isValid()) {
示例11: testTimeUnit3
function testTimeUnit3()
{
Debug::text('Testing Time Unit Format: Decimal', __FILE__, __LINE__, __METHOD__, 10);
TTDate::setDateFormat('dMY');
TTDate::setTimeZone('PST');
TTDate::setTimeFormat('g:i A');
/*
10 => 'hh:mm (2:15)',
12 => 'hh:mm:ss (2:15:59)',
20 => 'Hours (2.25)',
22 => 'Hours (2.241)',
30 => 'Minutes (135)'
*/
TTDate::setTimeUnitFormat(20);
$this->assertEquals(TTDate::parseTimeUnit('0.02'), 1 * 60);
$this->assertEquals(TTDate::parseTimeUnit('0.03'), 2 * 60);
$this->assertEquals(TTDate::parseTimeUnit('0.05'), 3 * 60);
$this->assertEquals(TTDate::parseTimeUnit('0.07'), 4 * 60);
$this->assertEquals(TTDate::parseTimeUnit('0.08'), 5 * 60);
$this->assertEquals(TTDate::parseTimeUnit('0.10'), 6 * 60);
$this->assertEquals(TTDate::parseTimeUnit('0.12'), 7 * 60);
$this->assertEquals(TTDate::parseTimeUnit('0.13'), 8 * 60);
$this->assertEquals(TTDate::parseTimeUnit('0.15'), 9 * 60);
$this->assertEquals(TTDate::parseTimeUnit('0.17'), 10 * 60);
$this->assertEquals(TTDate::parseTimeUnit('0.18'), 11 * 60);
$this->assertEquals(TTDate::parseTimeUnit('0.20'), 12 * 60);
$this->assertEquals(TTDate::parseTimeUnit('0.22'), 13 * 60);
$this->assertEquals(TTDate::parseTimeUnit('0.23'), 14 * 60);
$this->assertEquals(TTDate::parseTimeUnit('0.25'), 15 * 60);
$this->assertEquals(TTDate::parseTimeUnit('0.27'), 16 * 60);
$this->assertEquals(TTDate::parseTimeUnit('0.28'), 17 * 60);
$this->assertEquals(TTDate::parseTimeUnit('0.30'), 18 * 60);
$this->assertEquals(TTDate::parseTimeUnit('0.32'), 19 * 60);
$this->assertEquals(TTDate::parseTimeUnit('0.33'), 20 * 60);
$this->assertEquals(TTDate::parseTimeUnit('0.35'), 21 * 60);
$this->assertEquals(TTDate::parseTimeUnit('0.37'), 22 * 60);
$this->assertEquals(TTDate::parseTimeUnit('0.38'), 23 * 60);
$this->assertEquals(TTDate::parseTimeUnit('0.40'), 24 * 60);
$this->assertEquals(TTDate::parseTimeUnit('0.42'), 25 * 60);
$this->assertEquals(TTDate::parseTimeUnit('0.43'), 26 * 60);
$this->assertEquals(TTDate::parseTimeUnit('0.45'), 27 * 60);
$this->assertEquals(TTDate::parseTimeUnit('0.47'), 28 * 60);
$this->assertEquals(TTDate::parseTimeUnit('0.48'), 29 * 60);
$this->assertEquals(TTDate::parseTimeUnit('0.50'), 30 * 60);
$this->assertEquals(TTDate::parseTimeUnit('0.52'), 31 * 60);
$this->assertEquals(TTDate::parseTimeUnit('0.53'), 32 * 60);
$this->assertEquals(TTDate::parseTimeUnit('0.55'), 33 * 60);
$this->assertEquals(TTDate::parseTimeUnit('0.57'), 34 * 60);
$this->assertEquals(TTDate::parseTimeUnit('0.58'), 35 * 60);
$this->assertEquals(TTDate::parseTimeUnit('0.60'), 36 * 60);
$this->assertEquals(TTDate::parseTimeUnit('0.62'), 37 * 60);
$this->assertEquals(TTDate::parseTimeUnit('0.63'), 38 * 60);
$this->assertEquals(TTDate::parseTimeUnit('0.65'), 39 * 60);
$this->assertEquals(TTDate::parseTimeUnit('0.67'), 40 * 60);
$this->assertEquals(TTDate::parseTimeUnit('0.68'), 41 * 60);
$this->assertEquals(TTDate::parseTimeUnit('0.70'), 42 * 60);
$this->assertEquals(TTDate::parseTimeUnit('0.72'), 43 * 60);
$this->assertEquals(TTDate::parseTimeUnit('0.73'), 44 * 60);
$this->assertEquals(TTDate::parseTimeUnit('0.75'), 45 * 60);
$this->assertEquals(TTDate::parseTimeUnit('0.77'), 46 * 60);
$this->assertEquals(TTDate::parseTimeUnit('0.78'), 47 * 60);
$this->assertEquals(TTDate::parseTimeUnit('0.80'), 48 * 60);
$this->assertEquals(TTDate::parseTimeUnit('0.82'), 49 * 60);
$this->assertEquals(TTDate::parseTimeUnit('0.84'), 50 * 60);
$this->assertEquals(TTDate::parseTimeUnit('0.85'), 51 * 60);
$this->assertEquals(TTDate::parseTimeUnit('0.87'), 52 * 60);
$this->assertEquals(TTDate::parseTimeUnit('0.89'), 53 * 60);
$this->assertEquals(TTDate::parseTimeUnit('0.90'), 54 * 60);
$this->assertEquals(TTDate::parseTimeUnit('0.92'), 55 * 60);
$this->assertEquals(TTDate::parseTimeUnit('0.94'), 56 * 60);
$this->assertEquals(TTDate::parseTimeUnit('0.95'), 57 * 60);
$this->assertEquals(TTDate::parseTimeUnit('0.97'), 58 * 60);
$this->assertEquals(TTDate::parseTimeUnit('0.99'), 59 * 60);
$this->assertEquals(TTDate::parseTimeUnit('1.00'), 60 * 60);
}
示例12: foreach
}
if (isset($data['milestone_rows'])) {
foreach ($data['milestone_rows'] as $milestone_row_id => $milestone_row) {
if ($data['type_id'] == 20 and isset($milestone_row['accrual_rate']) and $milestone_row['accrual_rate'] != '') {
$data['milestone_rows'][$milestone_row_id]['accrual_rate'] = TTDate::parseTimeUnit($milestone_row['accrual_rate']);
}
if (isset($milestone_row['maximum_time']) and $milestone_row['maximum_time'] != '') {
$data['milestone_rows'][$milestone_row_id]['maximum_time'] = TTDate::parseTimeUnit($milestone_row['maximum_time']);
}
/*
if ( isset($milestone_row['minimum_time']) AND $milestone_row['minimum_time'] != '' ) {
$data['milestone_rows'][$milestone_row_id]['minimum_time'] = TTDate::parseTimeUnit($milestone_row['minimum_time'] );
}
*/
if (isset($milestone_row['rollover_time']) and $milestone_row['rollover_time'] != '') {
$data['milestone_rows'][$milestone_row_id]['rollover_time'] = TTDate::parseTimeUnit($milestone_row['rollover_time']);
}
}
}
$apf = TTnew('AccrualPolicyFactory');
$apmf = TTnew('AccrualPolicyMilestoneFactory');
$action = Misc::findSubmitButton();
$action = strtolower($action);
switch ($action) {
case 'delete':
//Debug::setVerbosity(11);
if (count($ids) > 0) {
foreach ($ids as $apm_id) {
if ($apm_id > 0) {
Debug::Text('cDeleting Milestone Row ID: ' . $apm_id, __FILE__, __LINE__, __METHOD__, 10);
$apmlf = TTnew('AccrualPolicyMilestoneListFactory');
示例13: extract
* $Date: 2009-10-07 13:27:06 -0700 (Wed, 07 Oct 2009) $
*/
require_once '../../includes/global.inc.php';
require_once Environment::getBasePath() . 'includes/Interface.inc.php';
if (!$permission->Check('schedule_policy', 'enabled') or !($permission->Check('schedule_policy', 'edit') or $permission->Check('schedule_policy', 'edit_own'))) {
$permission->Redirect(FALSE);
//Redirect
}
$smarty->assign('title', TTi18n::gettext($title = 'Edit Schedule Policy'));
// See index.php
/*
* Get FORM variables
*/
extract(FormVariables::GetVariables(array('action', 'id', 'data')));
if (isset($data['start_stop_window'])) {
$data['start_stop_window'] = TTDate::parseTimeUnit($data['start_stop_window']);
}
$spf = new SchedulePolicyFactory();
$action = Misc::findSubmitButton();
$action = strtolower($action);
switch ($action) {
case 'submit':
Debug::Text('Submit!', __FILE__, __LINE__, __METHOD__, 10);
$spf->setId($data['id']);
$spf->setCompany($current_company->getId());
$spf->setName($data['name']);
$spf->setMealPolicyID($data['meal_policy_id']);
$spf->setOverTimePolicyID($data['over_time_policy_id']);
$spf->setAbsencePolicyID($data['absence_policy_id']);
$spf->setStartStopWindow($data['start_stop_window']);
if ($spf->isValid()) {
示例14: createPayPeriodSchedule
function createPayPeriodSchedule($type, $start_dow, $transaction_dow, $primary_dom, $secondary_dom, $primary_transaction_dom, $secondary_transaction_dom, $transaction_bd, $day_start_time = '00:00')
{
$ppsf = new PayPeriodScheduleFactory();
$ppsf->setCompany($this->company_id);
Debug::text('zzzCompany ID: ' . $this->company_id, __FILE__, __LINE__, __METHOD__, 10);
$ppsf->setName('test_' . rand(1000, 99999));
$ppsf->setDescription('test');
/*
20 => 'Bi-Weekly',
30 => 'Semi-Monthly',
40 => 'Monthly + Advance'
*/
$ppsf->setType($type);
$day_start_time = TTDate::parseTimeUnit($day_start_time);
Debug::text('parsed Day Start Time: ' . $day_start_time, __FILE__, __LINE__, __METHOD__, 10);
$ppsf->setDayStartTime($day_start_time);
if ($type == 10 or $type == 20) {
$ppsf->setStartDayOfWeek($start_dow);
$ppsf->setTransactionDate($transaction_dow);
} elseif ($type == 30) {
$ppsf->setPrimaryDayOfMonth($primary_dom);
$ppsf->setSecondaryDayOfMonth($secondary_dom);
$ppsf->setPrimaryTransactionDayOfMonth($primary_transaction_dom);
$ppsf->setSecondaryTransactionDayOfMonth($secondary_transaction_dom);
} elseif ($type == 50) {
$ppsf->setPrimaryDayOfMonth($primary_dom);
$ppsf->setPrimaryTransactionDayOfMonth($primary_transaction_dom);
}
$ppsf->setTransactionDateBusinessDay((bool) $transaction_bd);
$ppsf->setTimeZone('PST8PDT');
$ppsf->setEnableInitialPayPeriods(FALSE);
if ($ppsf->isValid()) {
$pp_schedule_id = $ppsf->Save();
$ppslf = new PayPeriodScheduleListFactory();
$ret_obj = $ppslf->getById($pp_schedule_id)->getCurrent();
return $ret_obj;
}
return FALSE;
}
示例15: parse_wage_weekly_time
function parse_wage_weekly_time($input, $default_value = NULL, $parse_hint = NULL)
{
if (isset($parse_hint) and $parse_hint != '') {
TTDate::setTimeUnitFormat($parse_hint);
}
$retval = TTDate::parseTimeUnit($input);
return $retval;
}