Kesavan Muthuvel's Personal Home Page

Index | Bookmarks | I'm supporting | More info? | Royal Thunderbird! | Maemo N900 | Nexus 4 (Android + more ) | KODI [aka] XBMC | My Public Key (GPG) | My Sign | Travel Photos | Blog
Thanks to.. | Open Materials | interview qns | scripts to look | RegEx me! | Web Dev tips | eBooks Collection
Looking for a girl A day - a cartoon Shameless self promo Generate random values

Scripts I like

Here are some scripts which are useful for preparations in PHP / MySQL .Please run these.Don't just read this. Thanks to highlight_file() of PHP.

PHP Info | echo Vs print | PHP MCRYPT | PHP FUNCTION(?) | PHP __wakeup() | PHP Date Calc | PHP Multi file attach MAIL | MySQL Date Calc | PHP OOPs | jQuery

<?php
//echo $date = date("Y-m-d H:i:s");echo "\n";
echo $date "2011-08-26 10:34:16";echo "\n";

$original strtotime($date);    // To UNIX_TIME_STAMP

$hr  25;
$min 46;
$sec 77;

$modified $original+$sec+($min*60)+($hr*60*60);

echo 
date("Y-m-d H:i:s",$modified);echo "\n";

/*
kesavan@Ideapad-Z460:/var/www/kesavan.info/scripts$ php datediff.php 
2011-08-26 10:34:16
2011-08-27 12:21:33
kesavan@Ideapad-Z460:/var/www/kesavan.info/scripts$ 
*/

/*
//$original = mktime(date("H", strtotime($date)), date("i", strtotime($date)), date("s", strtotime($date)),
//               date("m", strtotime($date)), date("d", strtotime($date)), date("Y", strtotime($date)));

*/

?>


Return to Kesavan Muthuvel's home page.

Please send comments on these web pages to hi@kesavan.info (or)  Feedback here

CopyLeft (Ͻ) 2008 - 2015 Kesavan Muthuvel More on CopyLeft

I Don't Love FaceBook