localtime

Format: localtime ( time )

Purpose: This function corrects for the main time zone and possible alternate (daylight savings) time zone for a time value. The time parameter must be an integer and is normally a value returned by caltime().

Return Values: Returns an object containing the broken down time. A broken down time object has the following fields:

nametypedescriptionrange
secintegerseconds after the minute[0, 61]
minintegerminutes after the hour[0, 59]
hourintegerhour since midnight[0, 23]
mdayintegerday of the month[1, 31]
monintegermonths since January[0, 11]
yearintegeryear
wdayintegerdays since Sunday[0, 6]
ydayintegerdays since January 1[0, 365]
isdstintegerflag for alternate daylight savings time[0, 1, -1],
0=not in effect,
1=in effect,
-1=information not available

Example:

input:resulting output:
<? localtime(caltime())>(sec=34, min=43, hour=23, mday=13, mon=11, year=2017, wday=3, yday=346, isdst=0)
<? gmtime(caltime())>(sec=34, min=43, hour=22, mday=13, mon=11, year=2017, wday=3, yday=346, isdst=0)

See Also: caltime(), difftime(), gmtime(), mktime(), strftime(), strptime().


This page was dynamically generated by the web application development tool RADpage of H.E.I.
© 1996-2017 H.E.I. All Rights Reserved.



Homepage
Intro/Features
Component Guide
Programming
  Language Guide
  Language Ref.
    General Design
    Lexical Structure
    Expressions
    Objects
    Methods
    Classes
    heitml Tags
    heitml Functions
      ArAppend
      ArConcat
      ArSearch
      array
      asc
      caltime
      chr
      class
      clone
      contains
      ContainsCase
      copy
      copyfile
      crypt
      _dbcolumns
      _dbforeignkey
      _dbprimarykey
      _dbtables
      _dbtypes
      default
      deletefile
      difftime
      directory
      findex
      flush
      fname
      gmtime
      htmlbool
      http_content_type
      http_empty_document
      http_expires
      http_header
      http_last_modified
      http_location
      http_set_cookie
      http_request_header
      _includefilepreprocessed
      index
      IndexCase
      integer
      isbool
      isdecl
      isempty
      isinteger
      isnull
      isstring
      istuple
      isreal
      left
      len
      localtime
      MD5
      mkdir
      mktime
      movefile
      offstotabcol
      random
      readFileLines
      _readini
      _readodbcdrv
      _readodbcdsn
      real
      resize
      right
      _serverdocroot
      _shelltemp
      srandom
      splitstring
      stat
      strftime
      strptime
      subst
      substall
      substring
      tabcoltooffs
      tolower
      toupper
      trim
      trimleft
      trimright
      TuAppField
      TuAssField
      TuAssign
      TuSlice
      TuDelField
      TuFieldSort
      TuInsField
      TuMerge
      TuName
      TuProject
      utime
      _writeini
    Advanced Functions
    Database Access
    Global Variables
    Form Fields
    Server Variables
    Sessions
    heitml Syntax
  Component Ref.
  Class Library
  User Components
  Tryout Form
  Tutorial
  New Features
  heitml 1
User Guide
FAQ
Mailinglist
Discussion Group
Services
Pricing/Register
Download
Frame
 
Contact
 
 
 
Search: