Created
September 10, 2014 07:56
-
-
Save sh4869/72169f4b573e0999e3cd to your computer and use it in GitHub Desktop.
Dartで時間を文字列にするにはintlを利用する ref: http://qiita.com/sh4869/items/cc64511cec78fb208c2a
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:intl/intl.dart'; | |
import 'package:intl/date_symbol_data_local.dart'; | |
import 'dart:core'; | |
void main(){ | |
var format = new DateFormat.Hms(); | |
var dateString = format.format(new DateTime.now()); | |
print(dataString); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment