IBOS open source
  • Namespace
  • Class

Namespaces

  • application
    • core
      • cache
        • driver
        • provider
      • components
      • controllers
      • engines
        • local
        • sae
      • model
      • modules
      • utils
      • widgets
    • modules
      • article
        • controllers
        • core
        • model
        • utils
      • calendar
        • controllers
        • model
        • utils
      • contact
        • controllers
        • model
        • utils
      • dashboard
        • controllers
        • model
        • utils
      • department
        • components
        • model
        • utils
      • diary
        • components
        • controllers
        • model
        • utils
        • widgets
      • email
        • controllers
        • core
        • model
        • utils
      • main
        • behaviors
        • components
        • controllers
        • model
        • utils
        • widgets
      • message
        • controllers
        • core
          • co
          • wx
            • callback
            • event
        • model
        • utils
      • mobile
        • components
        • controllers
        • utils
      • position
        • components
        • model
        • utils
      • recruit
        • components
        • controllers
        • core
        • model
        • utils
        • widgets
      • role
        • model
        • utils
      • user
        • components
        • controllers
        • model
        • utils
      • vote
        • components
        • controllers
        • model
        • utils
      • weibo
        • controllers
        • core
        • model
        • utils

Classes

  • Api
  • ApiCode
  • Attach
  • Cache
  • Cloud
  • Convert
  • Credit
  • Database
  • DateTime
  • Env
  • File
  • Ftp
  • IBOS
  • Image
  • Mail
  • Module
  • Org
  • Page
  • PHPExcel
  • String
  • System
  • Upgrade
  • Url
  • WebSite
  • Xml
  • XMLParse

Class DateTime

Namespace: application\core\utils
Located at system/core/utils/DateTime.php

Methods summary

public static
# S2L( $date )
public static
# getWeekDay( $timestamp = TIMESTAMP )
public static string
# getlunarCalendar( )

生成一个日期+星期+农历的字符串,如4月16日星期二农历三月初七

生成一个日期+星期+农历的字符串,如4月16日星期二农历三月初七

Returns

string
public static array
# getStrTimeScope( string $strTime, $time = TIMESTAMP )

获取字符串时间($strTime)所代表的时间范围

获取字符串时间($strTime)所代表的时间范围

Parameters

$strTime
$time

Returns

array
时间范围
public static string
# getTime( integer $secs, $format = 'dhis' )

根据秒数获得更人性化的时间提示

根据秒数获得更人性化的时间提示

Parameters

$secs
秒数
$format

Returns

string
格式化后的时间格式
public static integer
# getDays( integer $start, integer $end )

根据两个时间戳来求出期间的天数

根据两个时间戳来求出期间的天数

Parameters

$start
开始时间
$end
结束时间

Returns

integer
天数
public static
# getDiffDate( $date1, $date2 )
public static integer
# getSeasonByMonty( integer $month )

根据月份返回第几季度

根据月份返回第几季度

Parameters

$month
月份

Returns

integer
季度
public static type
# getFormatDate( type $start, type $end, type $type = 'Y-m-d' )

根据两个时间戳来格式化$type指定的日期类型

根据两个时间戳来格式化$type指定的日期类型

Parameters

$start
$end
$type
$filter

Returns

type
public static array
# getWeeks( $date = null )

获取某日所在的当前一个星期时间

获取某日所在的当前一个星期时间

Returns

array
IBOS open source API documentation generated by ApiGen