|
@@ -3,7 +3,7 @@
|
|
|
* Company: Lynar Studios
|
|
|
* E-Mail: webmaster@lynarstudios.com
|
|
|
* Created: 2023-03-16
|
|
|
-* Changed: 2023-03-31
|
|
|
+* Changed: 2023-04-03
|
|
|
*
|
|
|
* */
|
|
|
|
|
@@ -12,8 +12,13 @@
|
|
|
|
|
|
using ls::std::time::DateParameter;
|
|
|
using ls::std::time::SystemTime;
|
|
|
+using ls::std::time::type::Day;
|
|
|
|
|
|
-JNIEXPORT jboolean JNICALL Java_com_lynarstudios_ls_std_time_systemtime_SystemTimeJni_set(JNIEnv *_environment, jobject _object, jlong _long)
|
|
|
+JNIEXPORT jboolean JNICALL Java_com_lynarstudios_ls_std_time_systemtime_SystemTimeJni_set(JNIEnv *_environment, jobject _object, jobject _dateParameter)
|
|
|
{
|
|
|
- return SystemTime{}.set(DateParameter{});
|
|
|
+ jclass dateParameterClass = _environment->GetObjectClass(_dateParameter);
|
|
|
+ jmethodID getDayMethodId = _environment->GetMethodID(dateParameterClass, "getDay", "byte");
|
|
|
+ DateParameter dateParameter{};
|
|
|
+
|
|
|
+ return SystemTime{}.set(dateParameter);
|
|
|
}
|