gpt4 book ai didi

php - 见过的功能,就像这里一样

转载 作者:行者123 更新时间:2023-11-29 09:12:06 24 4
gpt4 key购买 nike

我需要建议和示例,我如何构建一个函数,或者其他用于显示“已看到”状态的东西,就像这里的SO(在“用户”选项卡中)一样。我知道它应该与用户注册+日志系统一起使用,我已经这样做了,但我正是需要这个选项...来显示看到的...

最佳答案

Hello guys, i need and advice and example, how i can build a function, or something else for displaying a "seen" status, like here on SO (in users tab)

查看:

示例:

prettyDate("2008-01-28T20:24:17Z") // => "2 hours ago"
prettyDate("2008-01-27T22:24:17Z") // => "Yesterday"
prettyDate("2008-01-26T22:24:17Z") // => "2 days ago"
prettyDate("2008-01-14T22:24:17Z") // => "2 weeks ago"

关于php - 见过的功能,就像这里一样,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5291286/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com