Top "Localtime" questions

Calendar time expressed relative to the user's local timezone.

LocalTime from Date

I'm trying to convert a Date instance to a LocalTime instance. // Create the Date Date date = format.parse("2011-02-18 05:00:00.0"); // …

java date localtime
Java subtract LocalTime

I have two LocalTime objects: LocalTime l1 = LocalTime.parse("02:53:40"); LocalTime l2 = LocalTime.parse("02:54:27"); How can I found different in minutes …

java localtime
Timezone in date?

From where does the date command in Linux get the timezone information? I cannot see /etc/localtime file and /usr/…

linux date timezone localtime
How to remove milliseconds from LocalTime in java 8

Using the java.time framework, I want to print time in format hh:mm:ss, but LocalTime.now() gives the …

java rounding datetime-format java-time localtime
C++: how to get the actual time with time and localtime?

I'm looking for a way to save the time in a HH::MM::SS fashion in C++. I saw here …

c++ time localtime
how to use localtime_s with a pointer in c++

I am working with a function in C++ to help get the integer for the month. I did some searching …

c++ pointers localtime
C++ - 'localtime' this function or variable may be unsafe

I am writing a simple logging class in C++ for learning purposes. My code contains a function that returns a …

c++ date datetime localtime ctime
Swift: NSDate formatting with strftime & localtime

How do I convert the following Objective-C code into Swift code? #define MAX_SIZE 11 char buffer[MAX_SIZE]; time_t …

objective-c c swift strftime localtime
Time zone and BST woes in Europe/London

I am really struggling with my hwclock since the UK changed to British Summer Time (BST) last weekend on my …

unix timezone localtime hwclock
Convert local time (10 digit number) to a readable datetime format

I'm working with pbx for voip calls. One aspect of pbx is that you can choose to receive CDR packages. …

c# datetime localtime