A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://pub.dev/documentation/github/latest/github/../github/dateToGitHubIso8601.html below:

dateToGitHubIso8601 function - github library

dateToGitHubIso8601 function

String? dateToGitHubIso8601

(

  1. DateTime? date

)

Converts the date to GitHub's ISO-8601 format:

The format is "YYYY-MM-DDTHH:mm:ssZ"

Implementation
String? dateToGitHubIso8601(DateTime? date) {
  if (date == null) {
    return null;
  }
  // Regex removes the milliseconds.
  return date.toUtc().toIso8601String().replaceAll(githubDateRemoveRegExp, '');
}

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4