Skip to content

Commit

Permalink
time - fix lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
brianvoe committed May 7, 2024
1 parent 163b487 commit 7fec78a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions time.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ func date(f *Faker) time.Time {
return time.Date(year(f), time.Month(month(f)), day(f), hour(f), minute(f), second(f), nanoSecond(f), time.UTC)
}

// FutureDate will generate a random past time.Time struct
// PastDate will generate a random past time.Time struct
func PastDate() time.Time { return pastDate(GlobalFaker) }

// FutureDate will generate a random past time.Time struct
// PastDate will generate a random past time.Time struct
func (f *Faker) PastDate() time.Time { return pastDate(f) }

func pastDate(f *Faker) time.Time {
Expand Down Expand Up @@ -322,8 +322,8 @@ func addDateTimeLookup() {
},
})

AddFuncLookup("pasttime", Info{
Display: "PastTime",
AddFuncLookup("pastdate", Info{
Display: "PastDate",
Category: "time",
Description: "Date that has occurred before the current moment in time",
Example: "2007-01-24 13:00:35.820738079 +0000 UTC",
Expand All @@ -333,8 +333,8 @@ func addDateTimeLookup() {
},
})

AddFuncLookup("futuretime", Info{
Display: "FutureTime",
AddFuncLookup("futuredate", Info{
Display: "FutureDate",
Category: "time",
Description: "Date that has occurred after the current moment in time",
Example: "2107-01-24 13:00:35.820738079 +0000 UTC",
Expand Down

0 comments on commit 7fec78a

Please sign in to comment.