MCPcopy
hub / github.com/CodebuffAI/codebuff / isFreebuffDeploymentHours

Function isFreebuffDeploymentHours

common/src/constants/freebuff-models.ts:264–271  ·  view source on GitHub ↗
(now: Date = new Date())

Source from the content-addressed store, hash-verified

262}
263
264export function isFreebuffDeploymentHours(now: Date = new Date()): boolean {
265 const eastern = getZonedParts(now, FREEBUFF_EASTERN_TIMEZONE)
266 const pacific = getZonedParts(now, FREEBUFF_PACIFIC_TIMEZONE)
267 return (
268 eastern.hour * 60 + eastern.minute >= 9 * 60 &&
269 pacific.hour * 60 + pacific.minute < 17 * 60
270 )
271}
272
273export function isFreebuffModelAvailable(
274 id: string,

Callers 4

isDeploymentHoursFunction · 0.90
isFreebuffModelAvailableFunction · 0.85

Calls 1

getZonedPartsFunction · 0.90

Tested by

no test coverage detected