in reply to getting day of the week

use Time::Piece; print localtime->wdayname;