Net_NNTP::getDate()
Net_NNTP::getDate() – get date from news server
Synopsis
require_once 'Net/NNTP.php';
array Net_NNTP::getDate (
)
Описание
Retrieves the date from the news server
Return value
array
- a hash with the date
-
$date['y']
Year -
$date['m']
Month -
$date['d']
Day
Замечание
since 0.3
This function can not be called statically.
Пример
Using getDate()
<?php
...
$date = $nntp->getDate();
echo "Date: ".$date['m']."-".$date['d']."-".$date['y'];
?>