OXYGEN
Home
GitHub
Releases
Community
Search…
Welcome to Oxygen
About
What is Oxygen?
Getting Started (Videos)
Getting help
Download and work with Oxygen
Download & Installation
Start working with Oxygen
Oxygen Modules
assert
date
db
email
eyes
http
log
mailinator
mob
pdf
proxy
serial
shell
soap
twilio
utils
web
win
Test Parameters
Cloud Providers
Sauce Labs
Lambda Test
TestObject
Advanced programming in Oxygen
Project Configuration
Locating Elements
Page Objects
Environments
Code Components
Powered By
GitBook
date
Provides methods for working with dates.
fromNow
Returns a future or a past date
Parameters:
Name
Type
Description
unit
String
Unit type. See
http://momentjs.com/docs/#/manipulating/add/
​
value
Number
Number of minutes/days/months/etc to add or subtract from the current date.
format
String
Format string.
Returns:
String
- Date formatted according to the specified format string.
now
Returns current date and time
See
http://momentjs.com/docs/#/displaying/format/
for supported format strings.
Parameters:
Name
Type
Description
format
String
Format string.
Returns:
String
- Date formatted according to the specified format string.
Previous
assert
Next
db
Last modified
8mo ago
Copy link
Contents
fromNow
now