1. Trang chủ
  2. » Công Nghệ Thông Tin

PHP Developer''''s Dictionary- P103 ppsx

5 167 0
Tài liệu đã được kiểm tra trùng lặp

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 5
Dung lượng 425,9 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

frenchtojd Syntax int frenchtojdint month, int date, int year Description The frenchtojd function converts a date, specified by month/ date / year , from the French Republican calend

Trang 1

frenchtojd()

Syntax

int frenchtojd(int month, int date, int year)

Description

The frenchtojd() function converts a date, specified by month/ date / year , from the

French Republican calendar to a Julian day count This converts dates only in years 1 through 14, which are the Gregorian dates from September 22, 1792 through September 22, 1806

gregoriantojd()

Syntax

int gregoriantojd(int month, int date, int year)

Description

The gregoriantojd() function converts a date, specified by month/ date / year , from

the Gregorian calendar to a Julian day count This converts dates only from the Gregorian calendar 4714 B.C to 9999 A.D

jddayofweek()

Syntax

mixed jddayofweek(int julian_date, int mode)

Description

The jddayofweek() function returns the Julian day count day of week, given the

julian_date Depending on the mode passed, this returns either an integer or string

value Possible mode values are shown in Table 11.9

Table 11.9 mode Values

0 Returns the day number as an integer For example, 0 is Sunday, 1 is Monday, and 2 is Tuesday

Trang 2

1 Returns a string containing the day of week, such as Monday, Tuesday, or

Wednesday

2 Returns a string containing the abbreviated day of week, such as Mon, Tues, or

Wed

jdmonthname()

Syntax

string jdmonthname(int julian_date, int mode)

Description

The jdmonthname() function takes a julian_date , and based on the mode , returns

the name of the month in which the date falls Possible mode values are shown in

Table 11.10

Table 11.10 mode Values

0 Gregorian—abbreviated

2 Julian—abbreviated

5 French Republican

jdtofrench()

Syntax

string jdtofrench(int month, int date int year)

Description

The jdtofrench() function converts a Julian day count date, defined by month , date

, and year , to the French Republican calendar

jdtogregorian()

Syntax

string jdtogregorian(int julian_date)

Trang 3

Description

The jdtogregorian() function converts a julian_date to a Gregorian date in the

format of month/day/year

jdtojewish()

Syntax

string jdtojewish(int julian_date)

Description

The jdtojewish() function converts a julian_date to a Jewish calendar date

jdtojulian()

Syntax

string jdtojulian(int julian_date)

Description

The jdtojulian() function formats a julian_date to that of month/day/year

jdtounix()

Syntax

int jdtounix(int julian_date)

Description

The jdtounix() function, which was added in PHP 4, returns a UNIX-formatted date stamp of the passed julian_date If the date falls outside of the UNIX supported

range (1970 to 2037), 0 is returned

jewishtojd()

Trang 4

Syntax

int jewishtojd(int month, int day, int year)

Description

The jewishtojd() function converts a date in the Jewish calendar, defined by month ,

date , and year , to Julian date count

juliantojd()

Syntax

int juliantojd(int month, int day, int year)

Description

The juliantojd() function converts a Julian calendar date, defined by month , date ,

and year , to Julian day count

unixtojd()

Syntax

int unixtojd([int time_stamp])

Description

The unixtojd() function, which was added in PHP 4, converts a UNIX time_stamp to

Julian date count

Compression

The set of compression functions uses functions of the zlib, which was written by Jean-loup Gailly and Mark Adler The compression functions allow your script to read and write gzip (.gz) compressed files You must have zlib version 1.0.9 or greater to use this module

gzclose()

Syntax

Trang 5

int gzclose(int gz_pointer)

Description

The gzclose() function closes an opened gz_pointer , or file, that was previously

opened using gzopen() If the function is successful, 1 is returned

gzcompress()

Syntax

string gzcompress(string data [, int level])

Description

The gzcompress() function, which was added in PHP 4.0.1, returns a compressed file containing data The level of compression can also be passed to this function,

where it is a number from 1 to 9, with 9 asking for maximum compression

gzeof()

Syntax

int gzeof(int gz_pointer)

Description

The gzeof() function returns 1 if the gz_pointer is at the end of the file (EOF) or on

error

gzfile()

Syntax

array gzfile(string gz_file [, int include_path])

Description

Ngày đăng: 07/07/2014, 05:20

TỪ KHÓA LIÊN QUAN