<?xml version="1.0" encoding="UTF-8" ?>
<taglib xmlns="http://java.sun.com/xml/ns/javaee"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd"
        version="2.1">

    <tlib-version>1.0</tlib-version>
    <short-name>dateUtil</short-name>
    <uri>http://egovframework.go.kr/functions/date-util</uri>

    <function>
        <name>formatLocalDateTime</name>
        <function-class>egovframework.util.DateUtil</function-class>
        <!--
        taglib의 <function-signature>에서 사용하는 타입들은 JSP/EL의 시그니처 제한에 따라 표준 Java 타입이어야 하며, EL에서는 java.time.LocalDateTime을 직접 인식하지 못하는 경우가 많습니다.
        java.time.LocalDateTime -> java.lang.Object 변경
        -->
        <function-signature>java.lang.String formatLocalDateTime(java.lang.Object, java.lang.String)</function-signature>
    </function>

    <function>
        <name>getCurrentDateTime</name>
        <function-class>egovframework.util.DateUtil</function-class>
        <function-signature>java.lang.String getCurrentDateTime(java.lang.String)</function-signature>
    </function>

    <function>
        <name>getCurDtRoundHalfHr</name>
        <function-class>egovframework.util.DateUtil</function-class>
        <function-signature>java.lang.String getCurrentDateTimeRoundedToHalfHour(java.lang.String)</function-signature>
    </function>

    <function>
        <name>getCurDtRoundHalfHrPlusOne</name>
        <function-class>egovframework.util.DateUtil</function-class>
        <function-signature>java.lang.String getCurrentDateTimeRoundedToHalfHourPlusOneHour(java.lang.String)</function-signature>
    </function>

    <function>
        <name>getCurrentDateAddDays</name>
        <function-class>egovframework.util.DateUtil</function-class>
        <function-signature>java.lang.String getCurrentDateAddDays(java.lang.String, int)</function-signature>
    </function>

    <function>
        <name>getCurrentDateAddMonths</name>
        <function-class>egovframework.util.DateUtil</function-class>
        <function-signature>java.lang.String getCurrentDateAddMonths(java.lang.String, int)</function-signature>
    </function>

    <function>
        <name>getSessionExpiryTime</name>
        <function-class>egovframework.util.DateUtil</function-class>
        <function-signature>java.lang.String getSessionExpiryTime(javax.servlet.http.HttpServletRequest, java.lang.String)</function-signature>
    </function>

    <function>
        <name>formatDateString</name>
        <function-class>egovframework.util.DateUtil</function-class>
        <function-signature>java.lang.String formatDateString(java.lang.String)</function-signature>
    </function>

    <function>
        <name>getCurrentDateAdd</name>
        <function-class>egovframework.util.DateUtil</function-class>
        <function-signature>java.lang.String getCurrentDateAdd(java.lang.String, java.lang.String, int)</function-signature>
    </function>

</taglib>
