Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve time descs #326

Merged
merged 1 commit into from Jan 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
34 changes: 17 additions & 17 deletions time.go
Expand Up @@ -213,7 +213,7 @@ func addDateTimeLookup() {
AddFuncLookup("date", Info{
Display: "Date",
Category: "time",
Description: "Random date",
Description: "Representation of a specific day, month, and year, often used for chronological reference",
Example: "2006-01-02T15:04:05Z07:00",
Output: "string",
Params: []Param{
Expand Down Expand Up @@ -324,7 +324,7 @@ func addDateTimeLookup() {
AddFuncLookup("pasttime", Info{
Display: "PastTime",
Category: "time",
Description: "Random past date",
Description: "Date that has occurred before the current moment in time",
Example: "2007-01-24 13:00:35.820738079 +0000 UTC",
Output: "string",
Generate: func(r *rand.Rand, m *MapParams, info *Info) (any, error) {
Expand All @@ -335,7 +335,7 @@ func addDateTimeLookup() {
AddFuncLookup("futuretime", Info{
Display: "FutureTime",
Category: "time",
Description: "Random past date",
Description: "Date that has occurred after the current moment in time",
Example: "2107-01-24 13:00:35.820738079 +0000 UTC",
Output: "string",
Generate: func(r *rand.Rand, m *MapParams, info *Info) (any, error) {
Expand All @@ -346,7 +346,7 @@ func addDateTimeLookup() {
AddFuncLookup("nanosecond", Info{
Display: "Nanosecond",
Category: "time",
Description: "Random nanosecond",
Description: "Unit of time equal to One billionth (10^-9) of a second",
Example: "196446360",
Output: "int",
Generate: func(r *rand.Rand, m *MapParams, info *Info) (any, error) {
Expand All @@ -357,7 +357,7 @@ func addDateTimeLookup() {
AddFuncLookup("second", Info{
Display: "Second",
Category: "time",
Description: "Random second",
Description: "Unit of time equal to 1/60th of a minute",
Example: "43",
Output: "int",
Generate: func(r *rand.Rand, m *MapParams, info *Info) (any, error) {
Expand All @@ -368,7 +368,7 @@ func addDateTimeLookup() {
AddFuncLookup("minute", Info{
Display: "Minute",
Category: "time",
Description: "Random minute",
Description: "Unit of time equal to 60 seconds",
Example: "34",
Output: "int",
Generate: func(r *rand.Rand, m *MapParams, info *Info) (any, error) {
Expand All @@ -379,7 +379,7 @@ func addDateTimeLookup() {
AddFuncLookup("hour", Info{
Display: "Hour",
Category: "time",
Description: "Random hour",
Description: "Unit of time equal to 60 minutes",
Example: "8",
Output: "int",
Generate: func(r *rand.Rand, m *MapParams, info *Info) (any, error) {
Expand All @@ -390,7 +390,7 @@ func addDateTimeLookup() {
AddFuncLookup("day", Info{
Display: "Day",
Category: "time",
Description: "Random day",
Description: "24-hour period equivalent to one rotation of Earth on its axis",
Example: "12",
Output: "int",
Generate: func(r *rand.Rand, m *MapParams, info *Info) (any, error) {
Expand All @@ -401,7 +401,7 @@ func addDateTimeLookup() {
AddFuncLookup("weekday", Info{
Display: "Weekday",
Category: "time",
Description: "Random week day",
Description: "Day of the week excluding the weekend",
Example: "Friday",
Output: "string",
Generate: func(r *rand.Rand, m *MapParams, info *Info) (any, error) {
Expand All @@ -412,7 +412,7 @@ func addDateTimeLookup() {
AddFuncLookup("month", Info{
Display: "Month",
Category: "time",
Description: "Random month",
Description: "Division of the year, typically 30 or 31 days long",
Example: "1",
Output: "string",
Generate: func(r *rand.Rand, m *MapParams, info *Info) (any, error) {
Expand All @@ -423,7 +423,7 @@ func addDateTimeLookup() {
AddFuncLookup("monthstring", Info{
Display: "Month String",
Category: "time",
Description: "Random month in string output",
Description: "String Representation of a month name",
Example: "September",
Output: "string",
Generate: func(r *rand.Rand, m *MapParams, info *Info) (any, error) {
Expand All @@ -434,7 +434,7 @@ func addDateTimeLookup() {
AddFuncLookup("year", Info{
Display: "Year",
Category: "time",
Description: "Random year",
Description: "Period of 365 days, the time Earth takes to orbit the Sun",
Example: "1900",
Output: "int",
Generate: func(r *rand.Rand, m *MapParams, info *Info) (any, error) {
Expand All @@ -445,7 +445,7 @@ func addDateTimeLookup() {
AddFuncLookup("timezone", Info{
Display: "Timezone",
Category: "time",
Description: "Random timezone",
Description: "Region where the same standard time is used, based on longitudinal divisions of the Earth",
Example: "Kaliningrad Standard Time",
Output: "string",
Generate: func(r *rand.Rand, m *MapParams, info *Info) (any, error) {
Expand All @@ -456,7 +456,7 @@ func addDateTimeLookup() {
AddFuncLookup("timezoneabv", Info{
Display: "Timezone Abbreviation",
Category: "time",
Description: "Random abbreviated timezone",
Description: "Abbreviated 3-letter word of a timezone",
Example: "KST",
Output: "string",
Generate: func(r *rand.Rand, m *MapParams, info *Info) (any, error) {
Expand All @@ -467,7 +467,7 @@ func addDateTimeLookup() {
AddFuncLookup("timezonefull", Info{
Display: "Timezone Full",
Category: "time",
Description: "Random full timezone",
Description: "Full name of a timezone",
Example: "(UTC+03:00) Kaliningrad, Minsk",
Output: "string",
Generate: func(r *rand.Rand, m *MapParams, info *Info) (any, error) {
Expand All @@ -478,7 +478,7 @@ func addDateTimeLookup() {
AddFuncLookup("timezoneoffset", Info{
Display: "Timezone Offset",
Category: "time",
Description: "Random timezone offset",
Description: "The difference in hours from Coordinated Universal Time (UTC) for a specific region",
Example: "3",
Output: "float32",
Generate: func(r *rand.Rand, m *MapParams, info *Info) (any, error) {
Expand All @@ -489,7 +489,7 @@ func addDateTimeLookup() {
AddFuncLookup("timezoneregion", Info{
Display: "Timezone Region",
Category: "time",
Description: "Random region timezone",
Description: "Geographic area sharing the same standard time",
Example: "America/Alaska",
Output: "string",
Generate: func(r *rand.Rand, m *MapParams, info *Info) (any, error) {
Expand Down