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?

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

报告相同问题?

悬赏问题

  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!
  • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?
  • ¥15 求daily translation(DT)偏差订正方法的代码
  • ¥15 js调用html页面需要隐藏某个按钮