Net_NNTP::getDate()

Net_NNTP::getDate() – get date from news server

Synopsis

require_once 'Net/NNTP.php';

array Net_NNTP::getDate ( )

Description

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

since 0.3

This function can not be called statically.

Example

Using getDate()

<?php
...
$date $nntp->getDate();
echo 
"Date: ".$date['m']."-".$date['d']."-".$date['y'];
?>
fetch the body of an article (Previous) fetch list of avaible newsgroups (Next)
Last updated: Tue, 16 Sep 2014 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:

User Notes:

There are no user contributed notes for this page.