aboutsummaryrefslogtreecommitdiff
path: root/lib/date.js
AgeCommit message (Collapse)AuthorFilesLines
2022-01-14chore: remove ts-generated source filesShinigami921-199/+0
2022-01-11chore: format lib without locales (#66)Shinigami1-17/+23
2021-03-22Linting fixes for `./lib`Marak1-76/+76
2021-03-03Issue 1114: New datatype moduleLBuerstmayr1-5/+5
Current status: - moved number(), float(), hexaDecimal(), boolean(), uuid() from random to datatype - moved respective test from random.unit to datatype.unit - tests of moved methods in random now check if DeprecationWarning is printed and respective method in datatype module is called - adapted all lib files that use moved methods (mostly number) - adapted tests of respective files to spy on the correct method - adapted README in order to promote usage of method that logs a DeprecationWarning
2019-04-18Get x dates between two datespbborel1-0/+22
2018-10-10[fix] Code styling for undefined check #711Marak1-4/+4
2018-10-10style(date): Avoid use of ternary expressions for optional argsDroogans1-4/+20
2018-10-09fix(date): Allow for `refDate` in `soon()`, `recent()`Droogans1-6/+8
Closes #686
2017-03-07Add faker.date.soon methodAlexey Torkhov1-1/+21
2016-03-03Install jsdoc and add doclet stubs for all methodsTobias Witt1-0/+43
Descriptions are taken from existing comments if available. The address module already has some new sample descriptions.
2015-07-18Adding generators: faker.date.month(), faker.date.weekday()Michael Radionov1-1/+33
2015-07-08[refactor] [major] Adds incremental browser builds. Switch to using ↵Marak1-55/+57
prototype for internal API. Previous usage of `module.parent` is not acceptable. Locale information is now passed into Faker constructor. Closes #125
2015-07-07[refactor] [dist] Allow for node to require individual locales ( to avoid ↵Marak1-1/+1
the default behavior of requiring all locale data. #125 #167
2014-11-12Have past, future and recent return random datesDaniel Perez Alvarez1-3/+17
Functions `past` and `future` only returned dates EXACTLY N YEARS before or after the reference date. Function `recent` only returned dates EXACTLY N DAYS before the reference date. For example, `faker.date.past(1)` would return either *Nov 12, 2014*, or *Nov 12, 2013*, but nothing in-between. Also, now you can call those functions without parameter, and N will take the default value of `1`.
2014-09-22[fix] Date.past #110Marak1-1/+1
2014-09-10[fix] Do not serialize Dates from Date.random APIs. Dates are now returned ↵Marak1-5/+5
as Date objects. #93
2014-07-22Bug fixes and latest version.FotoVerite1-6/+6
2014-07-22Merge pull request #86 from northernv/fix-future-dateMatthew Bergman1-1/+1
Ensure Date.future returns a date in the future.
2014-06-16added hours in date.recent. Currently the code returns date in past minutes. ↵Ed Shadi1-1/+1
random days could return 0 so modified the test to reflect <= current date.
2014-05-21Ensure Date.future returns a date in the future.Shane A. Stillwell1-1/+1
2014-05-17Moving to major new version for change of package name for uppercase to ↵FotoVerite1-8/+8
lowercase.
2013-11-05Add Date functionality: past, future, recent, betweencyanos31-0/+42
Includes build