摘要: 说明:在编程中,程序员会经常使用到日期相关的函数。 1)时间和日期相关函数,需要引入time包。 2)time.Time类型,用于表示时间 package ma import ( "time" "fmt" ) func main(){ now :=time.Now() fmt.Printf("typ 阅读全文
posted @ 2021-05-21 14:18 创客未来 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 1.将 DataTable数据导出cvs格式 这里返回的是保存后的文件名称。 public string Export2CSV(DataTable data, string filename, bool exportHeader = true, bool change = false) { stri 阅读全文
posted @ 2021-05-21 11:16 创客未来 阅读(327) 评论(0) 推荐(0) 编辑