Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/simstudioai/sim
/ daysAgo
Function
daysAgo
apps/sim/connectors/gmail/gmail.ts:131–133 ·
view source on GitHub ↗
(now: Date, days: number)
Source
from the content-addressed store, hash-verified
129
}
130
131
function
daysAgo(now: Date, days: number): Date {
132
return
new
Date(now.getTime() - days * 24 * 60 * 60 * 1000)
133
}
134
135
function
formatGmailDate(date: Date): string {
136
const
y = date.getFullYear()
Callers
1
buildSearchQuery
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected