Date access

class alphasign.date.Date

Class for setting and accessing the date.

call_date(format=0)

Call date for insertion into a TEXT file.

Parameter:format – integer from 0 to 9: 0 - MM/DD/YY; 1 - DD/MM/YY; 2 - MM-DD-YY; 3 - DD-MM-YY; 4 - MM.DD.YY; 5 - DD.MM.YY; 6 - MM DD YY; 7 - DD MM YY; 8 - MMM.DD, YYYY; 9 - Day of week
Returns:formatted string to use in a TEXT
Return type:string
set(year=None, month=None, day=None)

Sets the date in the memory of the sign. This must be done each day to keep the clock ‘up to date’, because the sign will not automatically advance the day.

If the date is not specified in the arguments, today’s date will be used.

Parameters:
  • year – (optional) two-digit year (98, 99, 00, ...)
  • month – (optional) integer month (1, 2, ..., 12)
  • day – (optional) integer day (1, ..., 31)
Return type:

alphasign.packet.Packet object

set_day(day=None)

Set the day of the week on the sign.

If the argument is omitted, today’s day will be used.

Parameter:day – (optional) integer between 1 (Sunday) and 7 (Saturday)
Return type:alphasign.packet.Packet object

Previous topic

Counters

Next topic

Devices

This Page