< prev index next >
src/java.xml/share/classes/com/sun/org/apache/xalan/internal/lib/ExsltDatetime.java
Print this page
*** 1,8 ****
/*
! * reserved comment block
! * DO NOT REMOVE OR ALTER!
*/
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
--- 1,8 ----
/*
! * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
! * @LastModified: Nov 2017
*/
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
*** 614,624 ****
* See above.
*/
public static boolean leapYear()
{
Calendar cal = Calendar.getInstance();
! int yr = (int)cal.get(Calendar.YEAR);
return (yr % 400 == 0 || (yr % 100 != 0 && yr % 4 == 0));
}
/**
* The date:month-name function returns the full name of the month of a date.
--- 614,624 ----
* See above.
*/
public static boolean leapYear()
{
Calendar cal = Calendar.getInstance();
! int yr = cal.get(Calendar.YEAR);
return (yr % 400 == 0 || (yr % 100 != 0 && yr % 4 == 0));
}
/**
* The date:month-name function returns the full name of the month of a date.
< prev index next >