PHP Classes

File: exemploData.php

Recommend this page to a friend!
  Classes of Diogo Del Santo   dataBr   exemploData.php   Download  
File: exemploData.php
Role: Example script
Content type: text/plain
Description: Exemplo de Uso
Class: dataBr
Add, subtract and compute difference between dates
Author: By
Last change:
Date: 11 years ago
Size: 639 bytes
 

Contents

Class file image Download

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <body>
        <?php
       
include_once "data.class.php";
       
       echo
"<br>Data Atual: ".data::atualDate("br2");
       echo
"<br>Depois de Amanhã será: ".data::addDias(data::atualDate("br2"),"2");
       echo
"<br>Antes Ontem foi: ".data::subDias(data::atualDate("br2"),"2");
       echo
"<br>Entre hoje e depois de amanhã há: ".data::diasNoPeriodo(data::atualDate("br2"), data::addDias(data::atualDate("br2"),"2"))." dias";
              
       
?>
</body>
</html>