Brass Core Plugins

year/month/day/hour/minute/second

Extract a component from a date.

Syntax

month([date])
second([date])
year([date])
minute([date])
day([date])
hour([date])

Remarks

If no date is passed then the function returns the component from the current time.

Example

Embedding a timestamp into a compiler binary.

.db strformat("Built: {0:D2}:{1:D2}:{2:D2} {3}/{4}/{5}",
    hour(), minute(), second(),
    day(), month(), year()), 0