Skip to content

EdwardSL/fcc-timestamp-ms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Timestamp Microservice

这个repository是用来完成freecodecamp的一个叫做“Timestamp Microservice”的api project,更多细节请访问:

https://www.freecodecamp.cn/challenges/timestamp-microservice

User Stories

  1. 把一个字符串作为参数,判断该字符串是不是一个 Unix 时间,或者一个公历日期(例如:January 1, 2016);

  2. 如果是,那么它同时返回 Unix 时间戳和公历日期;

  3. 如果不是,那么它返回 null。

Example Input

https://fcc-liy-timestamp-ms.herokuapp.com/December%2015,%202015

https://fcc-liy-timestamp-ms.herokuapp.com/1450137600

Example Output

{ "unix": 1450137600, "natural": "December 15, 2015" }

{ "unix": null, "natural": null }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published