1
0
mirror of https://github.com/ManyakRus/starter.git synced 2025-11-29 23:38:14 +02:00
Files
starter/postgres_func/postgres_func.go

21 lines
350 B
Go
Raw Normal View History

2023-03-17 11:20:09 +03:00
package postgres_func
import "time"
func StringSQLTime(time1 time.Time) string {
Otvet := ""
Otvet = "'" + time1.Format(time.RFC3339Nano) + "'"
return Otvet
}
2023-04-25 17:28:10 +03:00
func StringSQLTime_WithoutTimeZone(time1 time.Time) string {
Otvet := ""
format := "2006-01-02T15:04:05.999999999+00:00"
Otvet = "'" + time1.Format(format) + "'"
return Otvet
}