calc

package
v0.0.0-...-212a885 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

* @Author: Wangjun * @Date: 2021-05-15 22:43:19 * @LastEditTime: 2022-08-08 15:47:03 * @LastEditors: Wangjun * @Description: * @FilePath: \golib\calc\float.go * hnxr

* @Author: Wangjun * @Date: 2021-05-15 22:43:19 * @LastEditTime: 2022-08-08 15:46:47 * @LastEditors: Wangjun * @Description: * @FilePath: \golib\calc\init.go * hnxr

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Avg

func Avg(args ...interface{}) (interface{}, error)

Avg 平均值

func Day

func Day(args ...interface{}) (interface{}, error)

Day 返回当前时间日 [0-31]

func Float64

func Float64(arg interface{}) (fval float64, err error)

Float64 获取float数据

func Hour

func Hour(args ...interface{}) (interface{}, error)

Hour 返回当前时间小时 [0-24]

func Max

func Max(args ...interface{}) (interface{}, error)

Max 最大值

func Min

func Min(args ...interface{}) (interface{}, error)

Min 最小值

func Minute

func Minute(args ...interface{}) (interface{}, error)

Minute 返回当前时间分 [0-59]

func Month

func Month(args ...interface{}) (interface{}, error)

Month 返回当前时间月份 [1-12]

func Now

func Now(args ...interface{}) (interface{}, error)

Now 返回当前时间

func Second

func Second(args ...interface{}) (interface{}, error)

Second 返回当前时间秒 [0-59]

func Setup

func Setup(m map[string]govaluate.ExpressionFunction)

Setup 初始化

func Sum

func Sum(args ...interface{}) (interface{}, error)

Sum 求和

func Today

func Today(args ...interface{}) (interface{}, error)

Today 返回当前日期

func TodayTime

func TodayTime(args ...interface{}) (interface{}, error)

TodayTime 今天的时间

func Year

func Year(args ...interface{}) (interface{}, error)

Year 返回当前时间年份

func YearDay

func YearDay(args ...interface{}) (interface{}, error)

YearDay 返回当前时间日 [1-365]

Types

This section is empty.

Jump to

Keyboard shortcuts

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