| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |