Help for this page

Select Code to Download


  1. or download this
        my ($date, $time) = split / /, $datetime;
        $date = join '/', reverse split m[/], $date;
        $datetime = "$date $time";
    
  2. or download this
        my ($mon, $day, $year) = split(/\//, $_[0]);  
        my ($hour, $min, $sec) = split(/:/, $_[0]);
    
        print "$mon - $day - $year\n";
        print "$hour - $min - $sec\n";
    
  3. or download this
        my ($date) = @_;
        my ($time);
    
  4. or download this
        my ($datetime) = @_;
        my ($date, $time) = split / /, $datetime;