Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F539613
PhabricatorTimeFormatSetting.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
858 B
Referenced Files
None
Subscribers
None
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'
),
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 9:14 AM (1 d, 23 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
106992
Default Alt Text
PhabricatorTimeFormatSetting.php (858 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment