Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96478947
PhabricatorTimeFormatSetting.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Dec 27, 03:32
Size
858 B
Mime Type
text/x-php
Expires
Sun, Dec 29, 03:32 (2 d)
Engine
blob
Format
Raw Data
Handle
23174648
Attached To
rPH Phabricator
PhabricatorTimeFormatSetting.php
View Options
<?php
final
class
PhabricatorTimeFormatSetting
extends
PhabricatorSelectSetting
{
const
SETTINGKEY
=
'time-format'
;
const
VALUE_FORMAT_12HOUR
=
'g:i A'
;
const
VALUE_FORMAT_24HOUR
=
'H:i'
;
public
function
getSettingName
()
{
return
pht
(
'Time Format'
);
}
public
function
getSettingPanelKey
()
{
return
PhabricatorDateTimeSettingsPanel
::
PANELKEY
;
}
protected
function
getSettingOrder
()
{
return
300
;
}
protected
function
getControlInstructions
()
{
return
pht
(
'Select the format you prefer for editing and displaying time.'
);
}
public
function
getSettingDefaultValue
()
{
return
self
::
VALUE_FORMAT_12HOUR
;
}
protected
function
getSelectOptions
()
{
return
array
(
self
::
VALUE_FORMAT_12HOUR
=>
pht
(
'12 Hour, 2:34 PM'
),
self
::
VALUE_FORMAT_24HOUR
=>
pht
(
'24 Hour, 14:34'
),
);
}
}
Event Timeline
Log In to Comment