Nzbirc/v1/times

From tiberious.org

Main_Page > NZBirc > v1 > times

Contents

Times

A time can either be a date or a time period, or a range of times

Date Formats

Supported date formats follow:

  • YYYY/mm/dd - 2007/02/05
  • mm/dd/YYYY - 02/05/2007 (horrible format but is the default for php)
  • YYYY-mm-dd - 2007-02-05
  • D Mon Year - 05 Jan 2007 or 05th Jan 2007
  • Today
  • Yesterday
  • Wednesday
  • Next Tuesday

Time periods

The following time period identifiers are supported

  • hour - h or hour - 4h, 5hours, 1hour
  • day - d or day - 2d, 6days, 1day
  • week - w or week - 9w, 4weeks, 1week
  • year - y or year - 1y, 2years, 1year

i.e.

  • 1y 5w 2d

to indicate a negative time period, - can preceed the times, or ago can append, i.e.

  • -4d
  • 4days ago

Range of Times

A range of times can be provided using both dates and time periods.

  • from 10th Jan 2007 to 15th Jan 2007
  • 2007/01/10-2007/01/15
  • -3d to 1d
  • 01 feb 07 to 2d

for can also be used with a time period to indicate a range from the first time

  • -3d for 1d
  • 2007/02/02 for 2d

these two equate to:

  • -3d to -2d
  • 2007/02/02 to 2007/02/04

respectively