Exemplo n.º 1
0
func pos(D *day.Imp) (uint, uint) {
	//
	switch period {
	case day.Yearly:
		return D.PosInYear()
	case day.Monthly:
		return D.PosInMonth(true, 1, 3, dc)
	case day.Weekly:
		return D.PosInWeek(false, dc)
	}
	return 0, 0
}