ప్రస్తుత తేదీ మరియు సమయాన్ని డిఫాల్ట్ ఫార్మాట్లో పొందండి
Kotlin
xxxxxxxxxx
import java.time.LocalDateTime
fun main(args: Array<String>) {
val current = LocalDateTime.now()
println("Current Date and Time is: $current")
}
Current Date and Time is: 2017-08-02T11:25:44.973
నమూనాతో ప్రస్తుత తేదీ మరియు సమయాన్ని పొందండి
Kotlin
xxxxxxxxxx
import java.time.LocalDateTime
import java.time.format.DateTimeFormatter
fun main(args: Array<String>) {
val current = LocalDateTime.now()
val formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss.SSS")
val formatted = current.format(formatter)
println("Current Date and Time is: $formatted")
}
Current Date and Time is: 2017-08-02 11:29:57.401
ముందే నిర్వచించిన స్థిరాంకాలను ఉపయోగించి ప్రస్తుత తేదీ సమయాన్ని పొందండి
Kotlin
xxxxxxxxxx
import java.time.LocalDateTime
import java.time.format.DateTimeFormatter
fun main(args: Array<String>) {
val current = LocalDateTime.now()
val formatter = DateTimeFormatter.BASIC_ISO_DATE
val formatted = current.format(formatter)
println("Current Date is: $formatted")
}
Current Date is: 20170802
స్థానికీకరించిన శైలిలో ప్రస్తుత తేదీ సమయాన్ని పొందండి
Kotlin
xxxxxxxxxx
import java.time.LocalDateTime
import java.time.format.DateTimeFormatter
import java.time.format.FormatStyle
fun main(args: Array<String>) {
val current = LocalDateTime.now()
val formatter = DateTimeFormatter.ofLocalizedDateTime(FormatStyle.MEDIUM)
val formatted = current.format(formatter)
println("Current Date is: $formatted")
}
Current Date is: Aug 2, 2017 11:44:19 AM
Linux - anc-api-tools ని ఎలా ఇన్స్టాల్ చేయాలి
Linux - curvedns ని ఎలా ఇన్స్టాల్ చేయాలి
Python - సంఖ్య సానుకూలంగా ఉందా, ప్రతికూలంగా ఉందా లేదా 0 అని తనిఖీ చేయండి
Linux - zenmap ని ఎలా ఇన్స్టాల్ చేయాలి
C - పూర్ణాంకంలో అంకెల సంఖ్యను లెక్కించండి
C++ - లీప్ ఇయర్ని తనిఖీ చేయండి
JavaScript - స్ట్రింగ్ కొన్ని అక్షరాలతో ప్రారంభమై ముగుస్తుందో లేదో తనిఖీ చేయండి
C++ - సంఖ్య ప్రధానమైనదా కాదా అని తనిఖీ చేయండి
C - డైనమిక్ మెమరీ కేటాయింపును ఉపయోగించి అతిపెద్ద సంఖ్యను కనుగొనండి
Kotlin - ఒక సంఖ్యను n దశాంశ స్థానాలకు రౌండ్ చేయండి
Linux - xbitmaps ని ఎలా ఇన్స్టాల్ చేయాలి
Linux - zstd ని ఎలా ఇన్స్టాల్ చేయాలి
Kotlin - ఒక సంఖ్యను రివర్స్ చేయండి
Java - ఒక సంఖ్యను రివర్స్ చేయండి
Python - Excel (XLSX) ఫైల్లను వ్రాయడం
C++ - కోషెంట్ మరియు రిమైండర్ను కనుగొనండి
Linux - zfs-test ని ఎలా ఇన్స్టాల్ చేయాలి
Java - పిరమిడ్ మరియు నమూనాను సృష్టించండి
We have been online since 2021 and 1 millions of people around the globe have visited our website since then
More visitors every month