1package fake
2
3// Day generates day of the month
4func Day() int {
5 return r.Intn(31) + 1
6}
7
8// WeekDay generates name ot the week day
9func WeekDay() string {
10 return lookup(lang, "weekdays", true)
11}
12
13// WeekDayShort generates abbreviated name of the week day
14func WeekDayShort() string {
15 return lookup(lang, "weekdays_short", true)
16}
17
18// WeekdayNum generates number of the day of the week
19func WeekdayNum() int {
20 return r.Intn(7) + 1
21}
22
23// Month generates month name
24func Month() string {
25 return lookup(lang, "months", true)
26}
27
28// MonthShort generates abbreviated month name
29func MonthShort() string {
30 return lookup(lang, "months_short", true)
31}
32
33// MonthNum generates month number (from 1 to 12)
34func MonthNum() int {
35 return r.Intn(12) + 1
36}
37
38// Year generates year using the given boundaries
39func Year(from, to int) int {
40 n := r.Intn(to-from) + 1
41 return from + n
42}