PEAR Manual
Prev |  | Next

# Net_NNTP::date()

Net_NNTP::date() -- get date from news server

## Synopsis

    require_once 'Net/NNTP.php';

``array Net_NNTP::date` ()`

## Description

Warning
This function is deprecated. That means that future versions of this package may not support it anymore.

Retrieves the date from the news server

## Return value

`array` - a hash with the date

- `$date['y']` Year

- `$date['m']` Month

- `$date['d']` Day

## Note

This function can not be called statically.

## Example

Example 48-1. Using date()
    ...
    $date = $nntp->date();
    echo "Date: ".$date['m']."-".$date['d']."-".$date['y'];

Prev | Home | Next
Net_NNTP::connectAuthenticated() | Up | Net_NNTP::first()