diff options
Diffstat (limited to 'packages/bun-types/jsc.d.ts')
-rw-r--r-- | packages/bun-types/jsc.d.ts | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/packages/bun-types/jsc.d.ts b/packages/bun-types/jsc.d.ts index 06e6d0fd3..08e8ba680 100644 --- a/packages/bun-types/jsc.d.ts +++ b/packages/bun-types/jsc.d.ts @@ -40,6 +40,18 @@ declare module "bun:jsc" { export function drainMicrotasks(): void; /** + * Set the timezone used by Intl, Date, etc. + * + * @param timeZone A string representing the time zone to use, such as "America/Los_Angeles" + * + * @returns The normalized time zone string + * + * You can also set process.env.TZ to the time zone you want to use. + * You can also view the current timezone with `Intl.DateTimeFormat().resolvedOptions().timeZone` + */ + export function setTimeZone(timeZone: string): string; + + /** * Run JavaScriptCore's sampling profiler for a particular function * * This is pretty low-level. |