Skip to content

Using custom date parameters

builder_247 edited this page Apr 11, 2020 · 2 revisions

This page explains how to use human readable syntax for date parameters such as to and from with the Slothpixel API.

Basic math operations (addition, subtraction and division) can be used in conjunction with time units and now to generate a timestamp.

Supported units

Unit Name
y year
M month
w week
d day
h hour
m minute
s second

Examples

  • now - The current date
  • now-1d - The date one day ago
  • `` -