如何获得新的邮件ID(How get id of mail new)
我正在使用gmail api在五分钟内获取新邮件的id。 我使用总邮件新减去总邮件旧来获取邮件新ID。 但邮件总量非常大,时间过程很长。 是否有任何算法来获取可以更快处理的邮件新ID?
I'm using gmail api to get id of mail new in five minutes once. I used total mail new minus total mail old to get id of mail new. But Total of mail is very large, time process very long. Is there any algorithm to get id of mail new that can handle faster ?
原文:https://stackoverflow.com/questions/43020785
最满意答案
您需要转义格式字符:
'M.&\n\b\s\p;d,&\n\b\s\p;Y'
我只是逃过一劫而不是抬头看哪些是必要的。 如果它们被转义,它们也更容易被视为格式的一部分。
这只会在单引号字符串中起作用,因为
\n
将是双引号中的换行符。You need to escape the ones that are format characters:
'M.&\n\b\s\p;d,&\n\b\s\p;Y'
I just escaped them all instead of looking up which ones were necessary to be escaped. It's also easier to see that they are not meant as a part of the format if they are escaped.
This is only going to work in the single-quoted string as
\n
will be a newline in double-quoted.
相关问答
更多-
对于
PHP DateTime :: diff与DateTime :: format的问题(PHP DateTime::diff Issue with DateTime::format)[2022-04-27]
DateTime :: diff()返回一个DateInterval对象。 例如: diff($date1); echo "Years: {$interval->y }\n"; echo "Months: {$interval->m }\n"; echo "Days: {$interval->d }\n"; echo "Hour ...DateTime的格式不正确(DateTime is not in proper format)[2022-02-06]
有几种方法可以做到这一点。 或者: 更改运行Web应用程序的用户的区域设置 格式化时使用正确的CultureInfo对象 在当前线程上设置默认的CultureInfo对象 逃避斜线 在格式化时提供CultureInfo对象: @Html.DisplayFor(modelItem => item.EndDate.ToString("dd/MM/yyyy", CultureInfo.GetCulture("en-US"))) 要设置默认的CultureInfo对象: Thread.CurrentThread. ...也许问题是因为你的日期不可空? 如果它不可为空,则应考虑设置默认值。 Maybe the problem is because your date is not nullable? If it is not nullable you should consider setting default value.转换为DateTime格式(Convert to DateTime Format)[2023-03-02]
使用DateTime.ParseExact() string _strdate = "Tuesday 04/23/2013 11:05 PM"; // should be tuesday DateTime _date = DateTime.ParseExact(_strdate,"dddd MM/dd/yyyy hh:mm tt", CultureInfo.InvariantCulture) DateTime.ParseExact ...您需要转义格式字符: 'M.&\n\b\s\p;d,&\n\b\s\p;Y' 我只是逃过一劫而不是抬头看哪些是必要的。 如果它们被转义,它们也更容易被视为格式的一部分。 这只会在单引号字符串中起作用,因为\n将是双引号中的换行符。 You need to escape the ones that are format characters: 'M.&\n\b\s\p;d,&\n\b\s\p;Y' I just escaped them all instead of looking up which on ...您正在寻找@Html.Raw(...) ,它会阻止这种情况发生,并创建一个XSS洞。 就你而言,你可以完全摆脱它: @DateTime.Now.Year © Copyright by Nemanja You're looking for @Html.Raw(...), which will prevent that and create an XSS hole instead. In your case, you can get rid of it entirely: @DateTime.Now ...这是B8601DZw.d格式; 所以你可以使用B8601DZ30. 我相信。 data _null_; dt_char='2008-10-08T07:06:08.248635000Z'; dt_num = input(dt_char,B8601DZ30.); put dt_num= datetime.; run; That's B8601DZw.d format; so you can use B8601DZ30. I believe. data _null_; ...DateTime分钟格式:00(DateTime minute format :00)[2023-09-18]
根据MSDN,你的DataFormatString属性应该看起来像 [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:HH:mm tt}")] 你应该像显示它一样@Html.DisplayFor(modelItem => item.HeureEvenement) 因为.Hour和.Minute是整数,它将呈现为整数,而不是日期时间 或者你可以直接在视图中编写格式 @item.HeureE ...在SQL Server中以datetime格式转换datetime字符串(Convert datetime string in datetime format in SQL server)[2022-08-16]
试试这个 Declare @dt varchar(50) set @dt = '2017-03-01T18:23:02+0700' select convert(datetime, replace(LEFT(@dt, LEN(@dt) - 1), '+', '.'), 126) Try this Declare @dt varchar(50) set @dt = '2017-03-01T18:23:02+0700' select convert(datetime, replace(LEFT(@dt, LE ...相关文章
更多- MongoDB _id和ObjectId详解
- solr required field: id
- js 通过td的id值 如何拿到tr的id值?
- html中一个div的id是“1:222”的话,怎么利用id给它定义css啊?
- mysql in根据查询id排序
- 配置solr自动生成id
- 别拿Hadoop map key当id使
- 使用TabPanel时,如果两个页面存在相同的id。
- solr4.0 id 自动生成
- Solr Document [null] missing required field: id 的原因
最新问答
更多- 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
- 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
- OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
- 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
- codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
- 在计算机拍照在哪里进入
- 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
- No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
- 单页应用程序:页面重新加载(Single Page Application: page reload)
- 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
- System.StackOverflow错误(System.StackOverflow error)
- KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
- 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
- android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
- TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
- 企业安全培训的各项内容
- 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
- C#类名中允许哪些字符?(What characters are allowed in C# class name?)
- NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
- 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
- 将多个行和可变行移动到列(moving multiple and variable rows to columns)
- 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
- 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
- Angular $资源不会改变方法(Angular $resource doesn't change method)
- 在Angular 5中不是一个函数(is not a function in Angular 5)
- 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
- 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
- 常见的python rpc和cli接口(Common python rpc and cli interface)
- Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
- 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)