Documentation

date package

The date package provides date and time constants and functions. Import the date package:

import "date"

Constants

date.April = 4
date.August = 8
date.December = 12
date.February = 2
date.Friday = 5
date.January = 1
date.July = 7
date.June = 6
date.March = 3
date.May = 5
date.Monday = 1
date.November = 11
date.October = 10
date.Saturday = 6
date.September = 9
date.Sunday = 0
date.Thursday = 4
date.Tuesday = 2
date.Wednesday = 3
  • date.April is a constant that represents the month of April.
  • date.August is a constant that represents the month of August.
  • date.December is a constant that represents the month of December.
  • date.February is a constant that represents the month of February.
  • date.Friday is a constant that represents Friday as a day of the week.
  • date.January is a constant that represents the month of January.
  • date.July is a constant that represents the month of July.
  • date.June is a constant that represents the month of June.
  • date.March is a constant that represents the month of March.
  • date.May is a constant that represents the month of May.
  • date.Monday is a constant that represents Monday as a day of the week.
  • date.November is a constant that represents the month of November.
  • date.October is a constant that represents the month of October.
  • date.Saturday is a constant that represents Saturday as a day of the week.
  • date.September is a constant that represents the month of September.
  • date.Sunday is a constant that represents Sunday as a day of the week.
  • date.Thursday is a constant that represents Thursday as a day of the week.
  • date.Tuesday is a constant that represents Tuesday as a day of the week.
  • date.Wednesday is a constant that represents Wednesday as a day of the week.

Functions

Packages


Was this page helpful?

Thank you for your feedback!


Linux Package Signing Key Rotation

All signed InfluxData Linux packages have been resigned with an updated key. If using Linux, you may need to update your package configuration to continue to download and verify InfluxData software packages.

For more information, see the Linux Package Signing Key Rotation blog post.

InfluxDB Cloud backed by InfluxDB IOx

All InfluxDB Cloud organizations created on or after January 31, 2023 are backed by the new InfluxDB IOx storage engine. Check the right column of your InfluxDB Cloud organization homepage to see which InfluxDB storage engine you’re using.

If powered by IOx, this is the correct documentation.

If powered by TSM, see the TSM-based InfluxDB Cloud documentation.

InfluxDB Cloud backed by InfluxDB TSM

All InfluxDB Cloud organizations created on or after January 31, 2023 are backed by the new InfluxDB IOx storage engine which enables nearly unlimited series cardinality and SQL query support. Check the right column of your InfluxDB Cloud organization homepage to see which InfluxDB storage engine you’re using.

If powered by TSM, this is the correct documentation.

If powered by IOx, see the IOx-based InfluxDB Cloud documentation.

State of the InfluxDB Cloud (IOx) documentation

The new documentation for InfluxDB Cloud backed by InfluxDB IOx is a work in progress. We are adding new information and content almost daily. Thank you for your patience!

If there is specific information you’re looking for, please submit a documentation issue.