Skip to content

Instantly share code, notes, and snippets.

@sh4869
Created September 10, 2014 07:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sh4869/72169f4b573e0999e3cd to your computer and use it in GitHub Desktop.
Save sh4869/72169f4b573e0999e3cd to your computer and use it in GitHub Desktop.
Dartで時間を文字列にするにはintlを利用する ref: http://qiita.com/sh4869/items/cc64511cec78fb208c2a
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