-
Notifications
You must be signed in to change notification settings - Fork 4
compute datespace
kgryte edited this page May 12, 2015
·
1 revision
Generates an array
of linearly spaced Date
objects. If a length
is not provided, the default output array
length is 100
.
var stop = '2014-12-02T07:00:54.973Z',
start = new Date( stop ) - 60000;
var arr = compute.datespace( start, stop, 6 );
/* returns [
'Mon Dec 01 2014 22:59:54 GMT-0800 (PST)',
'Mon Dec 01 2014 23:00:06 GMT-0800 (PST)',
'Mon Dec 01 2014 23:00:18 GMT-0800 (PST)',
'Mon Dec 01 2014 23:00:30 GMT-0800 (PST)',
'Mon Dec 01 2014 23:00:42 GMT-0800 (PST)',
'Mon Dec 01 2014 23:00:54 GMT-0800 (PST)'
]
*/
For function options
, see the compute-datespace module.
- Utilities
- Array Creation
- Sorting and Reshaping Arrays
- Special Functions
- Arithmetic
- Relational Operations
- Logical Operations
- Trigonometry
- Geometry
- Sets
- Discrete Mathematics
- Linear Algebra
- Statistics