Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Side by Side Diff: samples/time/time_server.dart

Issue 11770004: Rename Date to DateTime. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library time_server; 5 library time_server;
6 6
7 import "dart:io"; 7 import "dart:io";
8 import "dart:utf"; 8 import "dart:utf";
9 9
10 const HOST = "127.0.0.1"; 10 const HOST = "127.0.0.1";
(...skipping 29 matching lines...) Expand all
40 return 40 return
41 ''' 41 '''
42 <html> 42 <html>
43 <style> 43 <style>
44 body { background-color: teal; } 44 body { background-color: teal; }
45 p { background-color: white; border-radius: 8px; border:solid 1px #555; text -align: center; padding: 0.5em; 45 p { background-color: white; border-radius: 8px; border:solid 1px #555; text -align: center; padding: 0.5em;
46 font-family: "Lucida Grande", Tahoma; font-size: 18px; color: #555; } 46 font-family: "Lucida Grande", Tahoma; font-size: 18px; color: #555; }
47 </style> 47 </style>
48 <body> 48 <body>
49 <br/><br/> 49 <br/><br/>
50 <p>Current time: ${new Date.now()}</p> 50 <p>Current time: ${new DateTime.now()}</p>
51 </body> 51 </body>
52 </html> 52 </html>
53 '''; 53 ''';
54 } 54 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698