为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Window 10 Firefox login table date scientific number conversion to Excel date numbers

  • 7 个回答
  • 1 人有此问题
  • 1 次查看
  • 最后回复者为 cor-el

more options

Dear Sir or Madam; I downloaded a login CSV file from the Firefox browser. The date columns format in the CSV login file is ‘1.64055E+12’. In EXCEL, 44556.79166 would translate to 2021/12/26 18:59:59. The translation of ‘1.64055E+12’ should not be the same exact date, but should be in the same date range, as the 44556.79166 number. I’m not a mathematician. Would you please show me how to convert the '1.64055E+12' value to an equivalent excel date/time number? I could then format the excel date number cells to an yyyy/mm/dd hh:mm:ss format. These scientific number values are in the Firefox login file CSV downloads so I assume they were intended to be used in EXCEL spread sheet. These values converted to EXCEL date values would help me sort account password date change records by account name and change date. I could review sorted account records (and thus determine the current password for individual old accounts). Your solution would help me immensely and I appreciate your time. Sincerely, Clyde Stewart – wes45505@aol.com, Boise, ID

Dear Sir or Madam; I downloaded a login CSV file from the Firefox browser. The date columns format in the CSV login file is ‘1.64055E+12’. In EXCEL, 44556.79166 would translate to 2021/12/26 18:59:59. The translation of ‘1.64055E+12’ should not be the same exact date, but should be in the same date range, as the 44556.79166 number. I’m not a mathematician.''' Would you please show me how to convert the '1.64055E+12' value to an equivalent excel date/time number? ''' I could then format the excel date number cells to an yyyy/mm/dd hh:mm:ss format. These scientific number values are in the Firefox login file CSV downloads so I assume they were intended to be used in EXCEL spread sheet. These values converted to EXCEL date values would help me sort account password date change records by account name and change date. I could review sorted account records (and thus determine the current password for individual old accounts). Your solution would help me immensely and I appreciate your time. Sincerely, Clyde Stewart – wes45505@aol.com, Boise, ID

由wes45505于修改

被采纳的解决方案

Note that you can easily convert an epoch string via a JavaScript bookmarklet in Firefox or via the Web Console. You can create a new bookmark and paste the JavaScript code in its Location field and give it a suitable name.

javascript:void(prompt('datetime',(new Date(Number(prompt('epoch',Date.now())))).toISOString()));


javascript:var d,DT=prompt('paste 13 digit epoch string',Date.now());
if(DT){
d=new Date(Number(DT));
prompt(d.toLocaleString('en-GB')+'\n'+d.toISOString()+'\n'+d.toUTCString(),d.toISOString());
}
void(0);

定位到答案原位置 👍 0

所有回复 (7)

more options

Firefox uses the Unix Epoch format to store datetime strings, so you need to convert this to the format Excel uses.

See:

more options

Dear Sir or Madam; Thank you for your input. I believe you are correct in the translation of Unix dates to corresponding EXCEL Dates. My problem is that I'm no longer versed in intermediate math. I'm very old. Anyway, My problem became how to translate a UNIX date in scientific format to a number.

Given: 1. The Scientific dates used in the Firefox login/pw table are in UNIX GMT milliseconds.

           2. The offset between UNIX and EXCEL is 70 years.
           3. EXCEL Day 1 is 1900/1/1
           4. UNIX Day 1 is 1970/1/1    (We eventually need to add 70 years to make it an EXCEL date.)

Here's what I finally found:

A2: 1.640552253122E+12 Format: Scientific, 12 zeroes Actual value in excel: 1640552253122

B2: =((((A2/10^3)/60)/60)/24) + DATE(1970,1,1) Format: yyyy/dd/mm hh:mm:ss.000 Actual displayed value in EXCEL is: 2021/12/26 20:57:33.122

I had made the original task/problem more difficult than it had to be. The EPOCH CONVERTER made me realize I had more digits in the actual scientific formatted number. When I changed from 5 to 12 zeroes, I could see them.

See https://www.epochconverter.com

由wes45505于修改

more options

A2: 1.640552253122E+12 Format: Scientific, 12 zeroes Actual value 1640552253122 B2: =((((A2/10^3)/60)/60)/24) + DATE(1970,1,1) Format: yyyy/mm/dd hh:mm:ss.000 Actual value displayed: 2021/12/26 20:57:33.122

Notes: 1. Firefox dates are in UNIX GMT millisecond format. 2. The offset between UNIX GMT Day 1 and EXCEL Day 1 is 70 years. 3. The UNIUX Day 1 is 1970/1/1 and the EXCEL Day 1 is 1900/1/1. 4. An EPOCH CONVERTER at https://www.epochconverter.com was a useful tool.

For now I have to figure out how to highlight the row with the most recent logon date within each group of sites (location URLs where I logged on. There are hundreds of those records. I would like to delete all but the most recent logon record for each site. That would leave me records with the most current site, logon ID and logon password records. I'd keep this current password list on a flash drive off of the PC. Any ideas?

For now I will only by highlighting the 'keepers'.

由wes45505于修改

more options

I added my solution here twice but didn't save it properly. Problem solved.

more options

640552253122E+12 Format: Scientific, 12 zeroes Actual value 1640552253122 B2: =((((A2/10^3)/60)/60)/24) + DATE(1970,1,1) Format: Custom, yyyy/mm/dd hh:mm:ss.000 Actual value displayed: 2021/12/26 20:57:33.122 (GMT)

Notes: 1. Firefox dates are in UNIX GMT millisecond format. 2. The offset between UNIX GMT Day 1 and EXCEL Day 1 is 70 years. 3. The UNIUX Day 1 is 1970/1/1 and the EXCEL Day 1 is 1900/1/1. 4. An EPOCH CONVERTER at https://www.epochconverter.com was a useful tool.

For now I have to figure out how to highlight the row with the most recent logon date within each group of sites (location URLs where I logged on. There are hundreds of those records. I would like to delete all but the most recent logon record for each site. That would leave me records with the most current site, logon ID and logon password records. I'd keep this current password list on a flash drive off of the PC. Any ideas?

For now I will only by highlighting the 'keepers'.

由wes45505于修改

more options

640552253122E+12 Format: Scientific, 12 zeroes Actual value 1640552253122 B2: =((((A2/10^3)/60)/60)/24) + DATE(1970,1,1) Format: Custom, yyyy/mm/dd hh:mm:ss.000 Actual value displayed: 2021/12/26 20:57:33.122 (GMT)

Notes: 1. Firefox dates are in UNIX GMT millisecond format. 2. The offset between UNIX GMT Day 1 and EXCEL Day 1 is 70 years. 3. The UNIUX Day 1 is 1970/1/1 and the EXCEL Day 1 is 1900/1/1. 4. An EPOCH CONVERTER at https://www.epochconverter.com was a useful tool.

For now I have to figure out how to highlight the row with the most recent logon date within each group of sites (location URLs where I logged on. There are hundreds of those records. I would like to delete all but the most recent logon record for each site. That would leave me records with the most current site, logon ID and logon password records. I'd keep this current password list on a flash drive off of the PC. Any ideas?

For now I will only by highlighting the 'keepers'.

more options

选择的解决方案

Note that you can easily convert an epoch string via a JavaScript bookmarklet in Firefox or via the Web Console. You can create a new bookmark and paste the JavaScript code in its Location field and give it a suitable name.

javascript:void(prompt('datetime',(new Date(Number(prompt('epoch',Date.now())))).toISOString()));


javascript:var d,DT=prompt('paste 13 digit epoch string',Date.now());
if(DT){
d=new Date(Number(DT));
prompt(d.toLocaleString('en-GB')+'\n'+d.toISOString()+'\n'+d.toUTCString(),d.toISOString());
}
void(0);