Fb:editor-time

From Facebook Developer Wiki

Revision as of 03:15, 15 November 2007 by Gabe Berke-Williams (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

Contents

Description

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

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.

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

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.
reference