Skip to main content
Deno 2 is finally here 🎉️
Learn more
->
Dismiss
Products
Open Source
Deno
Modern runtime for JavaScript and TypeScript
Fresh
Web framework designed for the edge
JSR
TypeScript-first ESM package registry
Commercial
Deno for Enterprise
Enterprise support for runtime projects
Deploy
Easy serverless hosting for your JavaScript projects
Subhosting
Securely run untrusted code in a scalable sandbox
Docs
Modules
Standard Library
JSR
Node.js & npm
Current path
deno.land/x
Community
Discord
GitHub
X
YouTube
Mastodon
Blog
Search…
⌘K
Module
x
/
ptera
/
timezone.ts
Ptera is DateTime library for Deno
Tak-Iwamoto/ptera
Version
Latest
v1.0.2
v1.01
v1.0.0-beta
0.1.4
0.1.3
0.1.2
0.1.1
Menu
mod.ts
(default module)
c
DateTime
T
Timezone
v
MILLISECONDS_IN_DAY
v
MILLISECONDS_IN_HOUR
v
MILLISECONDS_IN_MINUTE
v
TIMEZONE
f
datetime
f
diffInDays
f
diffInHours
f
diffInMillisec
f
diffInMin
f
diffInSec
f
latestDateTime
f
oldestDateTime
constants.ts
v
MILLISECONDS_IN_DAY
v
MILLISECONDS_IN_HOUR
v
MILLISECONDS_IN_MINUTE
convert.ts
f
arrayToDate
f
dateToArray
f
dateToDayOfYear
f
dateToJSDate
f
dateToTS
f
dateToWeekDay
f
dayOfYearToDate
f
jsDateToDate
f
tsToDate
datetime.ts
c
DateTime
T
DateArg
T
DateTimeOption
f
datetime
f
diffInDays
f
diffInHours
f
diffInMillisec
f
diffInMin
f
diffInSec
f
latestDateTime
f
oldestDateTime
diff.ts
f
adjustedTS
format.ts
f
formatDate
f
formatDateObj
local_time.ts
f
getLocalName
f
getLocalOffset
f
utcToLocalTime
locale.ts
c
Locale
parse_date.ts
f
parseDateStr
f
parseISO
timezone.ts
f
tzOffset
types.ts
T
DateArray
T
DateDiff
T
DateFormatType
T
DateObj
T
Option
T
Timezone
v
DATE_FORMAT
v
TIMEZONE
f
isFormatDateType
utils.ts
v
INVALID_DATE
f
daysInMonth
f
daysInYear
f
floorMod
f
formatToThreeDigits
f
formatToTwoDigits
f
isBetween
f
isLeapYear
f
isValidDate
f
isValidOrdinalDate
f
millisecToMin
f
minToMillisec
f
parseInteger
f
truncNumber
f
weeksInWeekYear
f
weeksOfYear
zoned_time.ts
f
diffOffset
f
toOtherZonedTime
f
utcToZonedTime
f
zonedTimeToUTC
import
*
as
ptera
from
"https://deno.land/x/ptera@v1.0.2/timezone.ts"
;
Functions
f
tzOffset