This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.time.Instant | |
import java.time.LocalDate | |
import java.time.LocalDateTime | |
import java.time.LocalTime | |
import java.time.format.DateTimeFormatter | |
fun main(){ | |
print("local date: ${LocalDate.now()}") // 2022-02-18 | |
print("local time: ${LocalTime.now()}") // 15:46:05.838 | |
print("instant now: ${Instant.now()}"); // 2022-02-18T07:46:05.838Z |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// get your public ip of the subnet | |
// base code fetch from <https://nodejs.dev/learn/build-an-http-server> | |
// how to run? : `node ./GetPublicIpAddrServer.js` | |
const http = require('http') | |
const port4 = 12345 | |
const port6 = 12346 | |
const svn_fn = (req, res) => { | |
res.statusCode = 200 |
NewerOlder