且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何知道当前季度与日期?

更新时间:2023-01-31 16:14:18

对应于财政季度开始和结束的日期因国家/地区而异,以及进行财务报告的实体的性质(公司/个人/***/其他...);一些公司也有替代时间表。因此,没有标准的API。您必须获取当前月份和日期,并将其与感兴趣的国家和实体的相应季度开始/结束日期进行比较。您可以在***中找到某些国家/地区的日期。

The dates corresponding to the start and end of a fiscal quarter vary by country, as well by the nature of the entity doing the fiscal reporting (corporate/personal/government/other...); some companies also have alternate schedules. As such, there is no standard API for this. You will have to get the current month and date and compare it to the appropriate quarter start/end dates for the country and entity of interest. You can find the dates for some countries in wikipedia.