Overview

Namespaces

  • None
  • Rundiz
    • Thaidate

Classes

  • Thaidate
  • Overview
  • Namespace
  • Class

Class Thaidate

Format date in Thai locale.

Namespace: Rundiz\Thaidate
Located at Thaidate/Thaidate.php
Methods summary
public string
# date( string $format, integer $timestamp = '' )

Thai date() function.

Thai date() function.

Parameters

$format
The format as same as PHP date function format. See http://php.net/manual/en/function.date.php
$timestamp
The optional timestamp is an integer Unix timestamp.

Returns

string
Return the formatted date/time string.
public string
# strftime( string $format, integer $timestamp = '' )

Thai date use strftime() function.

Thai date use strftime() function.

Parameters

$format
The format as same as PHP date function format. See http://php.net/manual/en/function.strftime.php
$timestamp
The optional timestamp is an integer Unix timestamp.

Returns

string
Return the formatted date/time string.
Properties summary
public boolean $buddhist_era

Use Buddhist Era? (พ.ศ.)

Use Buddhist Era? (พ.ศ.)

# true
public type $locale

Locale to use in setlocale() function. Some server support different locales, with .UTF8, or without .UTF8. Detect and use at your own.

Locale to use in setlocale() function. Some server support different locales, with .UTF8, or without .UTF8. Detect and use at your own.

# 'th'
public array $month_long
# array('มกราคม', 'กุมภาพันธ์', 'มีนาคม', 'เมษายน', 'พฤษภาคม', 'มิถุนายน', 'กรกฎาคม', 'สิงหาคม', 'กันยายน', 'ตุลาคม', 'พฤศจิกายน', 'ธันวาคม')
public array $month_short
# array('ม.ค.', 'ก.พ.', 'มี.ค.', 'เม.ย.', 'พ.ค.', 'มิ.ย.', 'ก.ค.', 'ส.ค.', 'ก.ย.', 'ต.ค.', 'พ.ย.', 'ธ.ค.')
public array $day_long
# array('อาทิตย์', 'จันทร์', 'อังคาร', 'พุธ', 'พฤหัสบดี', 'ศุกร์', 'เสาร์')
public array $day_short
# array('อา.', 'จ.', 'อ.', 'พ.', 'พฤ.', 'ศ.', 'ส.')
API documentation generated by ApiGen