dongxiezhi9564 2019-05-24 07:31
浏览 191
已采纳

moment.js和moment.php是一样的吗?

I have created a js script using moment.js and I want to replicate it through a cron job. So, it will be in PHP.

So, I searched for moment.js equivalents and I found this https://github.com/fightbulc/moment.php

  • 写回答

1条回答 默认 最新

  • dp13668681869 2019-05-24 07:48
    关注

    Technically speaking, they are not the same. The GitHub repo says:

    Parse, validate, manipulate, and display dates in PHP w/ i18n support. Inspired by moment.js

    I read "inspired by" as similar in nature or close to. Otherwise, it would say something like "PHP port of Moment.js" or "PHP wrapper around Moment.js".


    You should define more clearly, however, what exactly you mean by "are they the same". Do you mean the API parity? Or API compatibility? Or something else?

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?