mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
358 B
358 B
Unix
Use Unix timestamp as time.
<n-time :time="4320000000" :to="8640000000"/>
<br>
<n-time :time="4320000" :to="8640000" unix/>
<br>
<n-time :time="4320000000" format="yyyy-MM-dd hh:mm:ss"/>
<br>
<n-time :time="4320000" format="yyyy-MM-dd hh:mm:ss" unix/>
export default {
data () {
return {
time: new Date(0)
}
}
}