在Java中使用MessageFormat将数字格式化为十六进制

时间:2018-07-04 15:31:33

标签: java hex messageformat

如何使用const response = await fetch('https://www.alphavantage.co/query?function=TIME_SERIES_DAILY&symbol=MSFT&outputsize=full&apikey=demo'); const responseData = await response.json(); let allTimeStamps = []; let allTimeStampsData = []; for(let key in responseData["Time Series (Daily)"]){ allTimeStamps.push(key); allTimeStampsData.push(responseData["Time Series (Daily)"][key]); } console.log("seperatedData", {allTimeStamps, allTimeStampsData}); 将数字格式化为十六进制?我有一个现有的WITH raw_messages AS (SELECT lines FROM `my_table` WHERE REGEXP_CONTAINS(lines, '^Date of application: ')) SELECT REGEXP_EXTRACT(lines, r'^Date of application: [0-9]{2}/[0-9]{2}/[0-9]{4}') as date FROM raw_messages 模式,客户希望将其从十进制数字更改为三位数的十六进制数字。是否可以使用MessageFormat?还是我必须切换到功能更强大的格式化程序?还是其他技巧?

0 个答案:

没有答案