Helm 3 complete tutorial (11): Helm function explanation (5) date function

Summarizes the common knowledge points and concepts of Helm 3. Part of the content in the document comes from major blogs and official documents, and some content has been reorganized based on my own understanding and practice. All concept explanations will be equipped with practical codes. The article is updated from time to time, welcome to follow and subscribe (a paid column is opened, otherwise it will be crawled away by other private websites. Please be considerate of the big brothers and sisters, it is just a lunch, and please support it).
Link to the original text of this column: https://blog.csdn.net/xzk9381/category_10895812.html, please indicate the source for reprinting

Date function

Helm provides the following date functions:

  • ago
  • date
  • dateInZone
  • dateModify(mustDateModify)
  • duration
  • durationRound
  • htmlDate
  • htmlDateInZone
  • now
  • toDate(mustToDate)
  • unixEpoch

1. now function

The now function is used to return the current date and time, and is usually used in conjunction with other date functions:

now		# 返回 2021-03-30 11:15:00.432712027 +0800 CST m=+0.077181490

2. ago function

ago function

Guess you like

Origin blog.csdn.net/xzk9381/article/details/115375278