Date (vine:date)
Operations on Dates
Get the current timestamp
vine
print(date.now())
Get the current date
vine
print(date.getDate())
Get the current day of the week
vine
print(date.getDay())
Get the current year
vine
print(date.getFullYear())
Get the current hour
vine
print(date.getHours())
Get the current milliseconds
vine
print(date.getMilliseconds())
Get the current minute
vine
print(date.getMinutes())
Get the current month
vine
print(date.getMonth())
Get the current second
vine
print(date.getSeconds())
Get the current time
vine
print(date.getTime())
Get the current time zone offset
vine
print(date.getTimezoneOffset())
Get the current UTC date
vine
print(date.getUTCDate())
Get the current UTC day of the week
vine
print(date.getUTCDay())
Get the current UTC year
vine
print(date.getUTCFullYear())
Get the current UTC hour
vine
print(date.getUTCHours())
Get the current UTC milliseconds
vine
print(date.getUTCMilliseconds())
Get the current UTC minute
vine
print(date.getUTCMinutes())
Get the current UTC month
vine
print(date.getUTCMonth())
Get the current UTC seconds
vine
print(date.getUTCSeconds())
Get the current JSON time
vine
print(date.toJSON())
Get the current date string
vine
print(date.toDateString())
Get the current ISO string
vine
print(date.toISOString())
Get the current local date string
vine
print(date.toLocaleDateString())
Get the current local string
vine
print(date.toLocaleString())
Get the current local time string
vine
print(date.toLocaleTimeString())
Get the current time string
vine
print(date.toTimeString())
Get the current UTC string
vine
print(date.toUTCString())