Use Jalali date instead of Gregorian date in patternfly-timeline - timeline.js

How I can use Jalali date instead of the Gregorian date in the patternfly-timeline?
This is a force for me to use Jalali in the patternfly-timeline. I mean that the x-axis should show Jalali date format.
Thanks for your help

Related

Convert cst to pst in big query

I have a datetime in a google data base that is in cst. I would like to convert it to pst.
Queries such as
SELECT DATETIME("2008-12-25 15:30:00+07","America/Los_Angeles") as date;
seem to assume that the starting date is in UTC. How can I convert if the starting date is in cst?
You can convert time in Bigquery regardless of what your starting date to a DATETIME in a specific timezone:
SELECT DATETIME("2008-12-25 15:30:00-06" ,"PST8PDT") as date;
Output:

SQLite date function returns nothing

I have a dataset with column named "msg_dateStr" which contains user's accessing date and time.
I tried to split it into two different columns; date and time, and I did SELECT date(msg_dateStr, 'localtime') as Year
but it returns null straight.
I don't know why this happens and how I can make sure something went wrong.
Any advice will be appreciated.
The date to be used by the Date and Time Functions such as date MUST be in a format that is recognised by SQLite for a useful result. Recognised formats are (extract from the link above) :-
Time Strings
A time string can be in any of the following formats:
YYYY-MM-DD
YYYY-MM-DD HH:MM
YYYY-MM-DD HH:MM:SS
YYYY-MM-DD HH:MM:SS.SSS
YYYY-MM-DDTHH:MM
YYYY-MM-DDTHH:MM:SS
YYYY-MM-DDTHH:MM:SS.SSS
HH:MM
HH:MM:SS
HH:MM:SS.SSS
now
DDDDDDDDDD
You need to ensure that the data is saved accordingly or alternately (but not recommended at all) reformat the column via SQL (e.g. using the substr built-in function).

Changing date format from day of year format (DDDYYYY) to Date Format (MM/DD/YYYY)

Trying to convert data thats in DDDYYYY (i.e. 1112014) to a standard date format (Feb-02-2014). How would i go about doing this? I know how to do the inverse operation but I was unable to find any examples online of how to convert from DDDYYYY format to MM/DD/YYYY format.
Below is my attempt:
select to_date(to_char(1112018, 'DDDYYYY'), 'MM/DD/YYYY') from dual;

Formatting date iso 8601 date format with Time zone

I am using a format string yyyy-MM-dd'T'HH:mm:ss
and its working great for dates like: 2014-02-20T05:25:03
What should be the format string when adding timezone like: 2014-02-20T05:25:03-07:00
Or 2014-02-20T05:25:03.366+05:00

SQLite Data Time Function

I currently have a timestamp in this format Tue Jun 03 17:17:05 +0000 2014 in one column in my table. I want to count the number of records happening in specific intervals (15 minutes). I have tried to follow the answer found in Group records by time. Although my timestamp is in a different format and I haven't seen any support function available in SQLite to convert this. Is this possible in SQL?
The SQLite date and time functions can be used to convert a timestring to a canonical format, or to a Julian Day Number. Unfortunately, the SQLite date and time functions only accept timestring in a limited number of formats:
YYYY-MM-DD
YYYY-MM-DD HH:MM
YYYY-MM-DD HH:MM:SS
YYYY-MM-DD HH:MM:SS.SSS
YYYY-MM-DDTHH:MM
YYYY-MM-DDTHH:MM:SS
YYYY-MM-DDTHH:MM:SS.SSS
If your timestring format has fixed field widths, you can use the substr function and the || string concatenation operator to convert it to a format SQLite understands. You'll have to use a case expression to convert the month names to numbers; here's an example.
You may use NEW_TIME in Oracle to convert the time to a specific timezone. Here is an example. This example is converting SYSDATE from PDT to GMT.
SELECT NEW_TIME (SYSDATE, 'PDT', 'GMT') FROM DUAL;
This thread is detailing how to add required minutes to your timestamp.