Fb:editor-time

From Facebook Developers Wiki

Jump to: navigation, search

Contents

[edit] Description

Creates a series of form selector elements showing the time in hours and minutes, and an AM/PM indicator.


[edit] Attributes

RequiredNameTypeDescription
optional label string The label to display on the left side of the selector. (Default value is blank.)
name string The name of the field that is passed when the form is submitted. (Default value is "time".)
value int The default value in epoch seconds with which to populate the selector.


[edit] Examples

<fb:editor action="?do-it" labelwidth="100"> <fb:editor-time value="1185930724" name="time"/> <fb:editor-buttonset> <fb:editor-button value="Add"/> <fb:editor-button value="Recommend"/> <fb:editor-cancel /> </fb:editor-buttonset> </fb:editor>
fb-editor-time.png


[edit] Notes

  • This tag returns three values, name_hour, name_min and name_ampm where name is the name for the control.
  • The time value that you enter is rounded to the nearest 15 minutes. Also, this selector displays only the time, not the time and date.