User Manager/Character constants

From MikroTik Wiki
< User Manager
Revision as of 15:07, 4 October 2006 by Girts (talk | contribs)
Jump to: navigation, search

Time constants

Time constants can be divided in parts. Each part consists of integer followed by one of the following characters:

  • w - week (equals 7 days)
  • d - day (equals 24 hours)
  • h - hour (equals 60 minutes)
  • m - minute (equals 60 seconds)
  • s - second

Examples:

  • 4w2d - 30 days (4 weeks and 2 days).
  • 30d - 30 days. Equals 4w2d
  • 3h - 3 hours
  • 2d2h - 50 hours (2 days and 2 hours). Equals 50h
  • 2w30m - 2 weeks and 30 minutes. Equals 20190m.

Date constants

In date constant following characters will be replaced with proper values:

  •  %Y - four digit year representation
  •  %b - verbal (short) month representation
  •  %m - two digit month representation
  •  %d - two digit day-of-the-month representation