com.moengage.util.DateTimeUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of condition-evaluator Show documentation
Show all versions of condition-evaluator Show documentation
Condition Evaluator for MoEngage Platform
The newest version!
package com.moengage.util;
import java.time.LocalDateTime;
import java.time.ZonedDateTime;
import java.util.TimeZone;
public class DateTimeUtil {
private final LocalDateTime dateTimeInstance;
public DateTimeUtil() {
this.dateTimeInstance = LocalDateTime.now();
}
public LocalDateTime getInstance() {
return this.dateTimeInstance;
}
public ZonedDateTime getTimeWithTimeZone(TimeZone timeZone) {
return this.getInstance().atZone(timeZone.toZoneId());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy