Remoto - VFS: date Class Reference
Remoto - VFS

The remoto date object, which has useful features not in the default javascript Date object. More...

#include "remoto!stdlib:js/include/date.js"

Public Member Functions

 date (year, month, day, hours, minutes, seconds, milliseconds)
 Construct a date object. More...
 
 timeToNextMinute
 Calculate the time remaining until the next wallclock minute. More...
 

Getters & Setters

getter id
 returns the number of milliseconds since midnight January 1, 1970 UTC More...
 
getter date
 a getter DOCME More...
 

Detailed Description

The remoto date object, which has useful features not in the default javascript Date object.

This builds on the basic javascript Date object to add useful math operations and printing methods.

Todo:
complete the date object documentation

Constructor & Destructor Documentation

◆ date() [1/2]

date (   year,
  month,
  day,
  hours,
  minutes,
  seconds,
  milliseconds 
)

Construct a date object.

Parameters
yearThe year
monthThe month
dayThe day of the month
hoursThe hour
minutesThe minute
secondsThe seconds
millisecondsThe milliseconds

Each value will default to 0 (or 1 as needed) if undefined.

◆ date() [2/2]

getter date

a getter DOCME

Member Function Documentation

◆ id()

getter id

returns the number of milliseconds since midnight January 1, 1970 UTC

◆ timeToNextMinute()

timeToNextMinute

Calculate the time remaining until the next wallclock minute.

Returns
The remaining time in milliseconds

The documentation for this class was generated from the following file: