format method - HttpDate class - dart:io library (original) (raw)

description

format static method

String format(

  1. DateTime date )

Format a date according toRFC-1123, e.g. Thu, 1 Jan 1970 00:00:00 GMT.

Implementation

static String format(DateTime date) {
  StringBuffer sb = StringBuffer();
  _formatTo(date, sb);
  return sb.toString();
}