MCPcopy Create free account
hub / github.com/angular/dev-infra / getThirtyDaysAgoDate

Function getThirtyDaysAgoDate

ng-dev/pr/discover-new-conflicts/cli.ts:45–52  ·  view source on GitHub ↗

Gets a date object 30 days ago from today.

()

Source from the content-addressed store, hash-verified

43
44/** Gets a date object 30 days ago from today. */
45function getThirtyDaysAgoDate() {
46 const date = new Date();
47 // Set the hours, minutes and seconds to 0 to only consider date.
48 date.setHours(0, 0, 0, 0);
49 // Set the date to 30 days in the past.
50 date.setDate(date.getDate() - 30);
51 return date.getTime();
52}
53
54/** yargs command module for discovering new conflicts for a PR */
55export const DiscoverNewConflictsCommandModule: CommandModule<{}, DiscoverNewConflictsOptions> = {

Callers 1

builderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected