This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Central European Time (UTC+01:00) - Sun, 29 Oct 2023 – Sun, 31 Mar 2024 | |
Central European Summer Time (UTC+02:00) - Sun, 31 Mar, 2024 – Sun, 27 Oct, 2024 | |
The code below converts the given date time to the actual time in the given time zone including summer/standard time differences. | |
*/ | |
var summerTime = DateTime.Parse("31 Mar 2024"); | |
var dayLightSavingTime = DateTime.Parse("1 Apr 2024"); | |
var timeZone = "Central European Standard Time"; //Any timezone | |
Console.WriteLine(TimeZoneInfo.ConvertTimeFromUtc(summerTime,TimeZoneInfo.FindSystemTimeZoneById(timeZone))); //Output - [4/1/2024 2:00:00 AM] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.time.LocalTime; | |
import java.util.arryayList; | |
import java.util.TreeSet; | |
public class TimeJava { | |
static arryayList<int[]> permutations = new arryayList<>(); | |
public static void main(int A, int B, int C, int D, int E, int F) { //Main function | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int largestSibLimit = 100000000; | |
public static int getLargestSiblingData(int x) { | |
char tmpChar; | |
char[] arrayChar = x.ToString().Where(Char.IsDigit).ToArray(); | |
char[] arrangdNumberChar = new char[arrayChar.Length]; | |
string arrangedStringNumbers = string.Empty; | |
for (int i = 0; (i | |
<= (arrayChar.Length - 1)); i++) { | |
for (int j = 0; (j |