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!


The future of Flux

Flux is going into maintenance mode. You can continue using it as you currently are without any changes to your code.

Read more

InfluxDB v3 enhancements and InfluxDB Clustered is now generally available

New capabilities, including faster query performance and management tooling advance the InfluxDB v3 product line. InfluxDB Clustered is now generally available.

InfluxDB v3 performance and features

The InfluxDB v3 product line has seen significant enhancements in query performance and has made new management tooling available. These enhancements include an operational dashboard to monitor the health of your InfluxDB cluster, single sign-on (SSO) support in InfluxDB Cloud Dedicated, and new management APIs for tokens and databases.

Learn about the new v3 enhancements


InfluxDB Clustered general availability

InfluxDB Clustered is now generally available and gives you the power of InfluxDB v3 in your self-managed stack.

Talk to us about InfluxDB Clustered