Changeset 202


Ignore:
Timestamp:
Jan 29, 2017, 4:27:43 PM (8 years ago)
Author:
g7moreau
Message:
  • Same date format y-m-d !
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/klask

    r201 r202  
    23972397   print "internet [label = \"internet\", color = black, fillcolor = cyan, shape = house, style = filled];\n";
    23982398
    2399    require DateTime;
    2400    my $date_now = DateTime->now;
    2401    print '"'.$date_now->ymd('/').' - '.$date_now->hms()."\" [ color = white, fillcolor = black, shape = polygon, sides=14, style = filled, fontcolor = white ]\n";
     2399   my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime time;
     2400   $year += 1900;
     2401   $mon++;
     2402   my $date = sprintf '%04i-%02i-%02i %02i:%02i', $year, $mon, $mday, $hour, $min;
     2403   print "\"$date\" [ color = white, fillcolor = black, shape = polygon, sides=14, style = filled, fontcolor = white ]\n";
    24022404
    24032405   my $b=0;
  • trunk/push-web

    r193 r202  
    4242
    4343
    44 LOCALTIME=$($DATE "+%Y/%m/%d %H:%M")
     44LOCALTIME=$($DATE "+%Y-%m-%d %H:%M")
    4545
    4646
Note: See TracChangeset for help on using the changeset viewer.