জয়েন লগইন

জাভা withSecond

🌈জাভা withSecond কি?

📋জাভা withSecond হলো সেকেন্ডের মান বের করার পদ্ধতি।

⚒️জাভা withSecond সেকেন্ডের মান বের করতে ব্যবহৃত হয়।

জাভা withSecond সেকেন্ডের মান বের করার উদাহরণ।

java
import java.time.LocalDateTime;
public class Main {
  public static void main(String[] args) {
  
  LocalDateTime dateTime = LocalDateTime.now();

  System.out.println(dateTime.withSecond(45));
  }
}