• My Pages
  • Comments
  • Add Link
  • Subscribe
  • Subscribe User
  • Edit (GUI)
  • Edit (Text)
  • Rename Page
  • Copy Page
  • Load Page
  • Save Page
  • Delete Page
  • Attachments
  • Check Spelling
  • Diffs
  • Info
  • Revert to this revision
  • XML
  • Render as Docbook
  • Print View
  • Raw Text
  • Delete Cache
  • Like Pages
  • Local Site Map
  • Remove Spam
  • Package Pages
  • Sync Pages
    • Diff for "date"
    Differences between revisions 1 and 2
    Revision 1 as of 2013-10-21 07:16:25
    Size: 835
    Editor: tech
    Comment:
    Revision 2 as of 2013-10-21 07:18:39
    Size: 926
    Editor: tech
    Comment:
    Deletions are marked like this. Additions are marked like this.
    Line 4: Line 4:
    returns string returns string - timestamp is an optional parameter. if timestamp is omitted, current timestamp is used.
    Line 7: Line 7:
    '''date()'''
    returns current time/date in human readable formatted string:
    '''date()''' returns current time/date in human readable formatted string:
    Line 32: Line 31:

    Function

    date([timestamp])

    returns string - timestamp is an optional parameter. if timestamp is omitted, current timestamp is used.

    examples

    date() returns current time/date in human readable formatted string:

    Mon Oct 21 02:10:26 GMT-0500 2013

    date(timestamp)

    returns time/date in human readable formatted string for specified timestamp

    date().getTime()

    returns current timestamp (integer number).

    date(timestamp).getHours()

    returns hour (integer number) for specified timestamp (or current time if timestamp is omitted).

    date(timestamp).getMinutes()

    returns minutes (integer number) for specified timestamp (or current time if timestamp is omitted).

    date(timestamp).getSeconds()

    returns seconds (integer number) for specified timestamp (or current time if timestamp is omitted).


    CategoryFunctions

    date (last edited 2015-08-19 21:37:29 by Inanna)