Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетил 20301 программист и 960 роботов. Сейчас ищут 573 программиста ...

Basics

Вернуться к: Date

Basics

Basics – How to get information

The auto-generated API documentation is very valuable to get information about this packages' methods and which parameters they require. But of course you first need to have an overview about the abilities of the class.

Getting data

There are a number of simple getter methods that let you retrieve single pieces of a date currently set.

Date does also have some advanced methods to obtain data from it.

Navigating between dates

The following method all return a new date object.

You can also do excact calculations by adding and subtracting intervals. The *Span methods require a Date_Span object to be passed as only parameter while the others take a number representing seconds.

Date_Span works, unlike Date, internally with integers, which means that you have a precision of 32 bit or ~68 years. Date span objects with more that 67 years will lead to unexpected results!



Вернуться к: Date

© 2024 «PHP.RU — Сообщество PHP-Программистов»
Главная | Форум | Реклама на сайте | Контакты VIP Сувениры
Разработка компании ODware