Files
Copilot 77ad224709 Fix S3 presigned URL expiration exceeding AWS 7-day limit (#11191)
* Initial plan

* Fix S3 presigned URL expiration exceeding AWS 7-day limit

Co-authored-by: tommoor <380914+tommoor@users.noreply.github.com>

* Add comprehensive tests for S3 presigned URL expiration limits

Co-authored-by: tommoor <380914+tommoor@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: tommoor <380914+tommoor@users.noreply.github.com>
2026-01-15 19:51:21 -05:00

41 lines
974 B
TypeScript

export class Second {
/** Milliseconds in a second */
public static ms = 1000;
}
export class Minute {
/** Milliseconds in a minute */
public static ms = 60 * Second.ms;
/** Seconds in a minute */
public static seconds = 60;
}
export class Hour {
/** Milliseconds in an hour */
public static ms = 60 * Minute.ms;
/** Seconds in an hour */
public static seconds = 60 * Minute.seconds;
/** Minutes in an hour */
public static minutes = 60;
}
export class Day {
/** Milliseconds in a day */
public static ms = 24 * Hour.ms;
/** Seconds in a day */
public static seconds = 24 * Hour.seconds;
/** Minutes in a day */
public static minutes = 24 * Hour.minutes;
}
export class Week {
/** Milliseconds in a week */
public static ms = 7 * Day.ms;
/** Seconds in a week */
public static seconds = 7 * Day.seconds;
/** Minutes in a week */
public static minutes = 7 * Day.minutes;
/** Days in a week */
public static days = 7;
}