JS tips and tricks: Difference between revisions

From HPCWIKI
Jump to navigation Jump to search
(Undo revision 2343 by Clara (talk))
Tag: Undo
(Fix: remove --- horizontal lines (7 removed))
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Status
|status=Draft
|owner=Knowledge Agent
|last_update=2026-07-16
|review=Pending
}}
{{TOC}}
== Overview ==
JS tips and tricks에 대한 기술 문서입니다.
=== Summary ===
* 무엇인가? - JS tips and tricks
* 왜 필요한가? - HPC 및 서버 환경에서 필수 개념
* 언제 사용하는가? - 서버 구성, 성능 튜닝, 문제 해결 시
== Purpose ==
이 문서가 존재하는 이유
* Goal: JS tips and tricks에 대한 기술 정보 제공
* Scope: JS tips and tricks의 개념, 사용법, 설정
* Non-goals: 다른 주제로의 확장
== Key Concepts ==
{| class="wikitable"
! Concept
! Description
! Related
|-
| JS tips and tricks
| HPC/서버 환경에서 중요한 기술 개념
| [[Linux]], [[Server]]
|}
== Detailed Explanation ==


== Display JavaScript datetime in 12 hour AM/PM format<ref>https://stackoverflow.com/questions/8888491/how-do-you-display-javascript-datetime-in-12-hour-am-pm-format</ref> ==
<code>only toLocaleTimeString() may behave differently based on region / location</code>
<code>only toLocaleTimeString() may behave differently based on region / location</code>
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
var time = new Date();
var time = new Date();
Line 14: Line 55:
'2024. 5. 30. 오전 11:56:46'
'2024. 5. 30. 오전 11:56:46'
</syntaxhighlight>
</syntaxhighlight>
<references />
== Best Practices ==
* 최신 버전 사용 권장
* 공식 문서 참고
* 테스트 환경에서 먼저 검증


== References ==
== References ==
<references />
 
* [https://wiki.hpcmate.com JS tips and tricks]
 
 
== Related Pages ==
 
* [[Linux]]
* [[Server]]
* [[Hardware]]
* [[Network]]
 
 
[[Category:Server]]
== Knowledge Graph ==
 
Related
 
→ [[Linux]]
→ [[Server]]
→ [[Hardware]]
→ [[Network]]
 
[[Category:Reference]]

Latest revision as of 11:29, 17 July 2026

Template:Status

Template:TOC

Overview

JS tips and tricks에 대한 기술 문서입니다.

Summary

  • 무엇인가? - JS tips and tricks
  • 왜 필요한가? - HPC 및 서버 환경에서 필수 개념
  • 언제 사용하는가? - 서버 구성, 성능 튜닝, 문제 해결 시


Purpose

이 문서가 존재하는 이유

  • Goal: JS tips and tricks에 대한 기술 정보 제공
  • Scope: JS tips and tricks의 개념, 사용법, 설정
  • Non-goals: 다른 주제로의 확장


Key Concepts

Concept Description Related
JS tips and tricks HPC/서버 환경에서 중요한 기술 개념 Linux, Server


Detailed Explanation

only toLocaleTimeString() may behave differently based on region / location

var time = new Date();
time
Thu May 30 2024 11:56:46 GMT+0900 (한국 표준시)
time.toLocaleString('en-US', { hour: 'numeric', minute: 'numeric', hour12: true })
'11:56 AM'
time.toLocaleString('ko-KR', { hour: 'numeric', minute: 'numeric', hour12: true })
'오전 11:56'
time.toLocaleString('ko-KR')
'2024. 5. 30. 오전 11:56:46'


Best Practices

  • 최신 버전 사용 권장
  • 공식 문서 참고
  • 테스트 환경에서 먼저 검증


References


Related Pages

Knowledge Graph

Related

LinuxServerHardwareNetwork