time

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

package os contains time related actions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActionDate

func ActionDate() carapace.Action

ActionDate completes `yyyy-MM-dd` dates separately

2020-12-20
2014-05-02

func ActionDateTime

func ActionDateTime(opts DateTimeOpts) carapace.Action

ActionDateTime completes `yyyy-MM-dd hh:mm:ss` datetime

2021-11-11 04:02:12
2021-04-02 16:11:33

func ActionDays

func ActionDays(opts DaysOpts) carapace.Action

ActionDays completes `dd` days for a month

01 (Friday)
28 (Thursday)

func ActionMonths

func ActionMonths() carapace.Action

ActionMonths completes `MM` months

01 (Januar)
11 (November)

func ActionTime

func ActionTime() carapace.Action

ActionTime completes `hh:mm` time

00:30
14:47

func ActionTimeS

func ActionTimeS() carapace.Action

ActionTimeS completes `hh:mm:ss` time

00:30:19
14:47:14

Types

type DateTimeOpts

type DateTimeOpts struct {
	Strict bool
}

type DaysOpts

type DaysOpts struct {
	Year  int
	Month int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL