1
0
mirror of https://github.com/ManyakRus/starter.git synced 2025-11-28 23:20:10 +02:00

сделал telegram_client.go

This commit is contained in:
Nikitin Aleksandr
2023-06-01 18:02:36 +03:00
parent 0f26ce5ed8
commit db2826b6ff
9 changed files with 100 additions and 23 deletions

View File

@@ -5,7 +5,9 @@ import "time"
func StringSQLTime(time1 time.Time) string {
Otvet := ""
Otvet = "'" + time1.Format(time.RFC3339Nano) + "'"
format := "2006-01-02T15:04:05.999999Z07:00"
Otvet = "'" + time1.Format(format) + "'"
//Otvet = "'" + time1.Format(time.RFC3339Nano) + "'"
return Otvet
}
@@ -13,7 +15,7 @@ func StringSQLTime(time1 time.Time) string {
func StringSQLTime_WithoutTimeZone(time1 time.Time) string {
Otvet := ""
format := "2006-01-02T15:04:05.999999999+00:00"
format := "2006-01-02T15:04:05.999999+00:00"
Otvet = "'" + time1.Format(format) + "'"
return Otvet